🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 03-11-2021 07:08 AM
(3926 views)
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.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try noautolegend option.
proc sgplot data=meanoutgold2b noautolegend ;
proc sgplot data=meanoutgold2b noautolegend ;
6 REPLIES 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try noautolegend option.
proc sgplot data=meanoutgold2b noautolegend ;
proc sgplot data=meanoutgold2b noautolegend ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Cool, it worked!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Use the SGPLOT option NOAUTOLEGEND.
proc sgplot data=meanoutgold2b NOAUTOLEGEND;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I want the legend though. I just don't want the warning in the log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Can you post the data and let us to test your code ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I think axis table was taking up too much space. I asked SAS technical support and she told me to increase the height to 7.5 inches. That seemed to fix it and still keep the legend.