You want this ?
libname x v9 'c:\temp\';
proc format;
value avis
0= 'HBase'
1= 'HWk20'
2= 'HWk38';
value stu
1='Harmony'
2='Encore';
run;
proc sgpanel data= x.Sampledata1 noautolegend ;
styleattrs datacontrastcolors=(green red) ;
format sno stu.;
title "Individual Biomarker panel Plot for Qualifying subjects with &var1 and &var2";
panelby sno/ spacing=5 novarname;
series x=newv y=aval/ markers group= sub markerattrs=(symbol=circlefilled) lineattrs=(pattern=solid) grouplc=sno groupmc=sno ; /*<----*/
rowaxis label="&var2";
colaxis label="Analysis Visit";
run;
You want this ?
libname x v9 'c:\temp\';
proc format;
value avis
0= 'HBase'
1= 'HWk20'
2= 'HWk38';
value stu
1='Harmony'
2='Encore';
run;
proc sgpanel data= x.Sampledata1 noautolegend ;
styleattrs datacontrastcolors=(green red) ;
format sno stu.;
title "Individual Biomarker panel Plot for Qualifying subjects with &var1 and &var2";
panelby sno/ spacing=5 novarname;
series x=newv y=aval/ markers group= sub markerattrs=(symbol=circlefilled) lineattrs=(pattern=solid) grouplc=sno groupmc=sno ; /*<----*/
rowaxis label="&var2";
colaxis label="Analysis Visit";
run;
OK. How about this one ?
libname x v9 'c:\temp\';
proc format;
value avis
0= 'HBase'
1= 'HWk20'
2= 'HWk38';
value stu
1='Harmony'
2='Encore';
run;
proc sgpanel data= x.Sampledata1 ;
styleattrs datacontrastcolors=(red green) ;
format sno stu.;
title "Individual Biomarker panel Plot for Qualifying subjects with &var1 and &var2";
panelby sno/ spacing=5 novarname;
series x=newv y=aval/ markers group= sub markerattrs=(symbol=circlefilled) lineattrs=(pattern=solid) grouplc=responder groupmc=responder ;
rowaxis label="&var2";
colaxis label="Analysis Visit";
legenditem name='a' type=markerline/markerattrs=(symbol=circlefilled color=red) lineattrs=(color=red) lable='Non-Responder';
legenditem name='b' type=markerline/markerattrs=(symbol=circlefilled color=green) lineattrs=(color=green) label='Responder';
keylegend 'a' 'b';
run;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.