I want to split label for each panel header,
proc format;
VALUE $ CHE
'a' ="AAAAAAAAAAAAA(*ESC*)(100mg N=638, 200mg N=320)"
'b' ="BBBBBBBBBBBBBB(*ESC*){unicode '000a'x}(100mg N=638, 200mg N=320)"
'c' ="CCCCCCCCCCCCCCC(*ESC*){unicode '000a'x}(100mg N=638, 200mg N=320)"
'd' ="DDDDDDDDDDDDDD (pompholyx)(*ESC*){unicode '000a'x}(100mg N=638, 200mg N=320)"
'e' ="EEEEEEEEEEEE(*ESC*){unicode '000a'x}(100mg N=638, 200mg N=320)"
;
run;
proc sgpanel data=Test_all noautolegend;
format EPTCD $Ept. subgroup $CHE.;
panelby Subgroup/layout=panel spacing=0 novarname columns=2 rows=3 sort=ASCENDING ;
styleattrs datacontrastcolors=(black);
scatter x=difference y=EPTCD / filledoutlinedmarkers group=Subgroup grouporder=Data xerrorlower=lcl xerrorupper=ucl
markerfillattrs=(color= blue) markerattrs=(symbol=squarefilled) markeroutlineattrs=(color=blue) ;
REFLINE 0 / axis=X;
inset txt /nolabel POSITION=bottomright TEXTATTRS=(Family=Arial Size=6 ) ;
colaxis label="Difference (95% CI)" values=(-20 -10 0 10 20 30 40 50 60 70) offsetmin=0.05 offsetmax=0.05;
rowaxis colorbands=odd label=" " offsetmax=.2 DISCRETEORDER=data reverse ;
run;
How about using two variables in panelby statement?
proc sgpanel data=sashelp.prdsale;
where product in ("CHAIR" "SOFA");
panelby year product/ spacing=5 novarname noheaderborder;
vline month / response=actual;
run;
How about using two variables in panelby statement?
proc sgpanel data=sashelp.prdsale;
where product in ("CHAIR" "SOFA");
panelby year product/ spacing=5 novarname noheaderborder;
vline month / response=actual;
run;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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: