id M green;proc sgplotdata=sashelp.classdattrmap=dattrmap;vbar age/group=sex groupdisplay=stack attrid=id;legenditem type=FILLname="F"/label='Female'fillattrs=(color=blue);legenditem type=FILLname="M"/label='Male'fillattrs=(color=green);keylegend"F""M";run; View sol...
); run; proc sgplot data=mixedout_nomiss nowall noborder; styleattrs backcolor=white; reg x=Length2 y=pred / nomarkers group=FOBS; yaxis label="Stress"; xaxis integer label="Current Singlehood Length" ; legenditem type=line name="-1" / label="Low FOBS" LINEATTRS=(patt...