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

Hi all,

I am trying to draw overlayed series (Actually I do want to use scatter but I couldn't draw curves of scatter plots) for two groups but I am getting athird line. You can find my code below and the resulting graph. Could you help me to get rid of this third line and make one curve black the other red? Thank you!


proc sgplot data=TIF_TCC_R_l_g noautolegend;
where form in ("Model 1.0", "Model 1.75");
series y=TIF x=ability/ legendlabel= 'Model 1.0' ;
series y=TIF x=ability/ legendlabel= 'Model 1.75' ;
xaxis values =(-9 to 6 by 0.5); ;
yaxis display=(noline noticks ) grid;
yaxis label="Information";
keylegend / title ="Reading 12 graph" sortorder=ascending location=outside position=bottom across=1;

 

dustychair_0-1601997685249.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
dustychair
Pyrite | Level 9

Quick update:

I resolved my issue by restructuring the data. Thanks all!

View solution in original post

1 REPLY 1
dustychair
Pyrite | Level 9

Quick update:

I resolved my issue by restructuring the data. Thanks all!

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 489 views
  • 0 likes
  • 1 in conversation