ods listing close;
options orientation=landscape;
ods graphics /noborder width=9in height=4.21in noscale ;
ods pdf file = "&fpath./&outfile..pdf" notoc dpi=400 nobookmarkgen nogtitle nogfootnote style=ABBV_LS_sg_color ;
ods escapechar='~';
proc sgplot noautolegend data = final sganno = anno ;
*format text txt.;
styleattrs axisextent=data;
refline ref/lineattrs=(thickness=13 color=cxf0f0f7);
highlow y=obsid low=lowercl high=uppercl;
scatter y=obsid x=estimate/markerattrs=(symbol=squarefilled color=blue);
scatter y=obsid x=estimate/markerattrs=(size=0) x2axis;
refline -15/axis=x lineattrs=(thickness=1 color=red pattern=solid) name="nim15" legendlabel="15% NI margin";
refline 0/axis=x lineattrs=(thickness=1 color=grey pattern=dash) name="ref0" legendlabel="Zero reference line";
yaxistable grp/location=inside position=left pad=(right=20px) valueattrs=(size=7) label = " " indentweight=indentvar;
yaxistable col2/location=inside position=left pad=(right=15px) valueattrs=(size=7) label = " ";
yaxistable trt1/location=inside position=right pad=(right=30px left = 30px) valueattrs=(size=7) label = " ";
yaxistable trt2/location=inside position=right pad=(right=30px) valueattrs=(size=7) label = " ";
yaxis reverse display=none colorbands=odd COLORBANDSATTRS =(transparency=1) offsetmin=0.15;
xaxis display=(nolabel) values=(-20 to 35 by 5) ;
x2axis display=(nolabel noline noticks novalues) ;
keylegend "nim15" "ref0"/ noborder valueattrs=(size=7) position = bottom;
run;
Are you asking about this:
height=4.21in
I noticed when I increase the height, the width decreased automatically. I manipulate obsid by multiply by 1.5 to increase the height of each data row. It worked.
Please explain in a lot more detail what you mean by "I want to vertically expand the plot".
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.