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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Have you tried to play with option offsetmax= in rowaxis?

PG

View solution in original post

3 REPLIES 3
PGStats
Opal | Level 21

Have you tried to play with option offsetmax= in rowaxis?

PG
grsanford
Fluorite | Level 6

Brilliant, that worked perfectly! Thank you.

DanH_sas
SAS Super FREQ

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

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 496 views
  • 0 likes
  • 3 in conversation