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 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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