- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The above is the graph I have created. However Im looking for the below to be added.
1) underline for the yaxistable labels(in place of the redline)
2) keeping a lin-space between each subgroup.
3) I have more subgroups and not all are fitting in one page, So how to flow the remaining over to next page?
My code below:
proc sgplot data=all nowall noborder nocycleattrs noautolegend;
format text $txt.;
styleattrs axisextent=data ;
highlow y=obsid low=low high=high;
scatter y=obsid x=mean / markerattrs=(symbol=diamondfilled size=7);
scatter y=obsid x=mean / markerattrs=(size=0) x2axis;
refline 0 / axis=x;
yaxis reverse display=none colorbands=odd colorbandsattrs=(transparency=1) offsetmin=0;
xaxis display=(nolabel) ;
x2axis display=(noline noticks novalues nolabel) labelattrs=(size=8);
yaxistable subgrp / location=inside position=left labelattrs=(size=7 weight=bold) valueattrs=(size=7 ) indentweight=indentWt label='Subgroup' labelhalign=left;
yaxistable nsub_1 / location=inside position=left labelattrs=(size=7 weight=bold) valueattrs=(size=7 ) label='n' labelhalign=left;
yaxistable ls / location=inside position=left pad=(right=15px) labelattrs=(size=7 weight=bold) label='LS Mean difference (95% CI)' labelhalign=left valueattrs=(size=7);
yaxistable pval_1 / location=inside position=left pad=(right=15px) labelattrs=(size=7 weight=bold) label='p-Value(two sided) for interaction' labelhalign=left valueattrs=(size=7);
run;
Thanks,
Manj