Help using Base SAS procedures

how to remove the keylegend location in proc sgplot

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 111
Accepted Solution

how to remove the keylegend location in proc sgplot

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.


Accepted Solutions
Solution
‎05-05-2015 05:05 AM
Super User
Super User
Posts: 7,955

Re: how to remove the keylegend location in proc sgplot

Posted in reply to Ravikumarkummari

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

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

View solution in original post


All Replies
Solution
‎05-05-2015 05:05 AM
Super User
Super User
Posts: 7,955

Re: how to remove the keylegend location in proc sgplot

Posted in reply to Ravikumarkummari

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

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

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 3851 views
  • 0 likes
  • 2 in conversation