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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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