I'm working on a graph in which I would like to place letters indicating significant difference above standard error bars. To do this I need to set the maximum y axis value above the error bar height to accommodate the letters (e.g. rowaxis max=10) but I cannot figure out to do this so that I can specify two different yaxis maximums in the two paneled graph. Below is the code I am using. Any help would be greatly appreciated.
proc sgpanel data=prod_stab2 sganno = anno;
panelby grp / novarname uniscale=column columns=1 spacing = 25 noheader;
vbarparm category=sys response=estimate / limitlower=Lower limitupper=Upper barwidth=0.35;
rowaxis label=" ";
format sys system. ;
label sys = "Cropping System";
run;
Have you tried to play with option offsetmax= in rowaxis?
Brilliant, that worked perfectly! Thank you.
Something else to consider is using an AXISTABLE (not sure of the SAS version you have). We added this support to SGPANEL in SAS 9.4m3. This would enable you to reference your labels as part of your input data (no sganno), and you would not have to specify an axis offset.
Just something to consider...
Thanks!
Dan
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.