Hi All,
I am trying to get a plot using sgpanel. i am able to get the plot, but right side of the plot having more space(red color). i used offsetmax & offsetmin option in rowaxis & colaxis aswell. any insight will be helpful.
Below is my code:
proc sgpanel data=final;
panelby grp/layout=columnlattice novarname onepanel colheaderpos=top ;
needle x=subid y=val/ group = subject LINEATTRS = (COLOR= gray PATTERN = 1 THICKNESS = 3) ;;;
rowaxis label='Change (%)' offsetmin=0.01 offsetmax=0.01 values=(-125 to 250 by 50) ;
colaxis display=(novalues noticks) offsetmin=.01 offsetmax=.01 min=0.1 max=.01;
refline -25/lineattrs=(pattern=4);
refline -50/lineattrs=(pattern=2);
refline 25/lineattrs=(pattern=4);
refline 50/lineattrs=(pattern=2);
run;
Thanks
Cathy
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.