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.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.
Ready to level-up your skills? Choose your own adventure.