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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.