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;
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
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
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.
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.