title1 "Graph 2B: Mean BMI Over Time by GOLD Status";
Title2 "Only Participants Through Visit 4 Who Completed All Four Visits";
title3 "Table with Participant Counts";
proc sgplot data=meanoutgold2b;
format visit visf. GOLD $goldf.;
series x=visit y=Mean / group=GOLD markers;
xaxistable N / class=GOLD colorgroup=GOLD
title="Number of Participants" ;
yaxis label="Mean BMI";
xaxis display=(nolabel) values=(1 to 4 by 1);
run;
title1;
title2;
title3;
footnote2 "Omitting Groups Where N < 3";
WARNING: DISCRETELEGEND statement with DISPLAYCLIPPED=FALSE is getting clipped. The legend will not be drawn.
NOTE: There were 19 observations read from the data set WORK.MEANOUTGOLD2B.
How do I get rid of this warning? I did ods trace. I'm not using a template.
Use the SGPLOT option NOAUTOLEGEND.
proc sgplot data=meanoutgold2b NOAUTOLEGEND;
I want the legend though. I just don't want the warning in the log.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.