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;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: