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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.