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

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

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