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

I have a scatter plot using SGPLOT of multiple measurements per day over time. I have added a line graph on top which is the average for each day. It doesn't look very good. Is there any way to smooth the line? That's all!

 

Hope someone can help. Pretty new to SAS and this is my first time posting. 

 

Thanks.

 

Kier Finnegan

1 ACCEPTED SOLUTION

Accepted Solutions
arodriguez
Lapis Lazuli | Level 10

May be you could use LOESS statement. This statement calculate a local regression, you could specify the number of points that you want to use with the MAXPOINTS. If you use 3 points you will use the point where you are and the previous and next, so it will be smoother than a seriesplot for the mean. Also you have a option called SMOOTH when you could specify the grade of smoothnes.

View solution in original post

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

As with anything graph orientated, check out Sanjey's excellent blog on graphs.  Everything you need to know about graphs is there:

http://blogs.sas.com/content/graphicallyspeaking/?s=smooth+line+plot

 

arodriguez
Lapis Lazuli | Level 10

May be you could use LOESS statement. This statement calculate a local regression, you could specify the number of points that you want to use with the MAXPOINTS. If you use 3 points you will use the point where you are and the previous and next, so it will be smoother than a seriesplot for the mean. Also you have a option called SMOOTH when you could specify the grade of smoothnes.

KFinn85
Calcite | Level 5

Thank you both, got it from a mixture of the two!

 

 

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Do mark one of them correct then, don't care which, its just clears the issue.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 4659 views
  • 0 likes
  • 3 in conversation