BookmarkSubscribeRSS Feed
somebody
Lapis Lazuli | Level 10

I am drawing a timeseries graph with different groups using a BY statement. These groups are percentiles and I am drawing only the top and bottom 10 percentiles. How do I tell SAS to use dash lines for the top 10 groups and solid lines for the bottom 10 groups? Currently, it is using dash line for the top 8 or 9 groups and then solid for the rest. My code is:

proc sgplot data = sample;
	where percentile<=10 or percentile>=91;
	series x=t y=price/group=percentile curvelabel curvelabelpos=end curvelabelloc=outside;
run;

 

1 REPLY 1

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 612 views
  • 0 likes
  • 2 in conversation