BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

good day all,

i am used graph for proc sgplot procedure.

i am getting the output but the what the problem was i dont want keylegend location in graph anywhere. its missing blank.

i follow these code.

PROC SGPLOT DATA=test;

  XAXIS VALUES=(0 to 100 BY 10) ; 

  YAXIS VALUES=(0 to 100 BY 25); 

  SERIES X=x Y=y / LINEATTRS=(THICKNESS=2) NAME="series1";

  SCATTER X=x Y=y1 / MARKERATTRS=(symbol=squarefilled COLOR=orange size=12);

keylegend "series1" RUN;

QUIT;

so how to remove the keylegend location in proc sgplot.

1 ACCEPTED SOLUTION

Accepted Solutions
1 REPLY 1
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Drop the keylegend statement, and add option noautolegend.  In the documentation:

SAS/GRAPH(R) 9.2: Statistical Graphics Procedures Guide, Second Edition

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 18972 views
  • 1 like
  • 2 in conversation