BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tarheel13
Rhodochrosite | Level 12
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
Ksharp
Super User
Try noautolegend option.
proc sgplot data=meanoutgold2b noautolegend ;

View solution in original post

6 REPLIES 6
Ksharp
Super User
Try noautolegend option.
proc sgplot data=meanoutgold2b noautolegend ;
tarheel13
Rhodochrosite | Level 12
Cool, it worked!
RichardDeVen
Barite | Level 11

Use the SGPLOT option NOAUTOLEGEND.

proc sgplot data=meanoutgold2b NOAUTOLEGEND;
tarheel13
Rhodochrosite | Level 12

I want the legend though. I just don't want the warning in the log.

Ksharp
Super User
Can you post the data and let us to test your code ?
tarheel13
Rhodochrosite | Level 12
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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 6 replies
  • 3234 views
  • 1 like
  • 3 in conversation