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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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