BookmarkSubscribeRSS Feed
Manj
Fluorite | Level 6

Manj_0-1589220082124.png

 

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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 0 replies
  • 466 views
  • 0 likes
  • 1 in conversation