BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
grsanford
Fluorite | Level 6

I am working to create a figure for a manuscript using sgscatter. I've gotten it almost where I want it but would like to have the panels in the figure (by row or column) share a common set of axis labels rather than having unique axis labels for each panel. I am wondering if sgscatter is the right procedure of if I need to try something different. Appreciate any suggestions. Code below. 

 

proc sgscatter
data=WICST_ANCOVA_Resids
sganno=anno
datasymbols=(circle diamond diamondfilled triangle trianglefilled square)
datacontrastcolors=(black);
label CC="Year" CS="Year" CSW="Year" CAAA="Year" CoAA="Year" PAST="Year";
plot tGcal_ha*(CC CS CSW CAAA CoAA PAST) /
rows = 2 columns = 3
group = system
nolegend
reg=(nogroup lineattrs=(pattern=shortdash color=black) clm);

run;

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

Since your axis ranges are independent per cell, and given your preferred layout, PROC SGPANEL will not work for you. One "brute-force" way you can do it is to set all of your labels to be 'a0'x and annotate your combined axis labels outside of the panel.

 

Hope this helps!

Dan

View solution in original post

1 REPLY 1
DanH_sas
SAS Super FREQ

Since your axis ranges are independent per cell, and given your preferred layout, PROC SGPANEL will not work for you. One "brute-force" way you can do it is to set all of your labels to be 'a0'x and annotate your combined axis labels outside of the panel.

 

Hope this helps!

Dan

Ready to join fellow brilliant minds for the SAS Hackathon?

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!
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
  • 1 reply
  • 412 views
  • 1 like
  • 2 in conversation