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

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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