I am using this code to make the figure below. However, I expect the REGION label and values to show only in the left panel, and therefore I would like to suppress showing these (i.e., the label and values of REGION) in column 2 on the right cell. Appreciate any suggestions to do this. I am using SAS 9.4 (TS1M4). Thanks.
proc sgpanel data=fig1;
panelby parameters/ novarname noheaderborder
layout=columnlattice onepanel uniscale=row;
scatter y=region x=RR / xerrorlower=low xerrorupper=high;
rowaxistable region / position=left labelpos=top;
rowaxis display=none reverse fitpolicy=none;
colaxis grid ;
run;
Why not using ROWAXIS ?
proc summary data=sashelp.heart nway;
class sex bp_status;
var weight;
output out=temp mean=mean lclm=lclm uclm=uclm;
run;
proc sgpanel data=temp;
panelby sex/ novarname noheaderborder
layout=columnlattice onepanel uniscale=row;
scatter y=bp_status x=mean / xerrorlower=lclm xerrorupper=uclm;
*rowaxistable _bp_status / position=left labelpos=top;
rowaxis reverse fitpolicy=none labelpos=top;
colaxis grid label='RR' ;
run;
Why not using ROWAXIS ?
proc summary data=sashelp.heart nway;
class sex bp_status;
var weight;
output out=temp mean=mean lclm=lclm uclm=uclm;
run;
proc sgpanel data=temp;
panelby sex/ novarname noheaderborder
layout=columnlattice onepanel uniscale=row;
scatter y=bp_status x=mean / xerrorlower=lclm xerrorupper=uclm;
*rowaxistable _bp_status / position=left labelpos=top;
rowaxis reverse fitpolicy=none labelpos=top;
colaxis grid label='RR' ;
run;
Yes, that worked. Thank you very much.
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.