BookmarkSubscribeRSS Feed
kpmcgarr
Calcite | Level 5

Hello!

 

I have created a linear regression of a few thousand points, but I want to show where 15 of those points stand in relation to the regression. I was wondering if there is any way I can make these points a different color or help them stand out in any way?

 

Thanks,

 

P

2 REPLIES 2
ballardw
Super User

How did you make your current plot?

The regression procedures have varying  options to control appearance and manipulate data. You may have to export the data with the regression predicted values, assign a group variable to differentiate between the points of interest and the remainder and use another procedure such as SGplot to display the result.

Ksharp
Super User

You really should post this question into Graph forum .

 

proc sgplot data=sashelp.class;
scatter x=weight y=height/markerattrs=(size=12px symbol=circlefilled) colorresponse=age;
run;

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

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 823 views
  • 0 likes
  • 3 in conversation