BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Jason2020
Obsidian | Level 7

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;

 

Jason2020_0-1678630430550.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

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;

Ksharp_0-1678713239440.png

 

View solution in original post

2 REPLIES 2
Ksharp
Super User

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;

Ksharp_0-1678713239440.png

 

Jason2020
Obsidian | Level 7

Yes, that worked. Thank you very much.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1145 views
  • 0 likes
  • 2 in conversation