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