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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 642 views
  • 0 likes
  • 1 in conversation