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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 664 views
  • 0 likes
  • 2 in conversation