BookmarkSubscribeRSS Feed
hellohere
Pyrite | Level 9

I have a time-series dataset[time=i; Y=tsvar], attached.

I need have multiple reference at column=refind,

AND if refcolor=max, color=lime, if refcolor=min, color=blue. 

 

Thanks, 

 

 

sc.jpg

2 REPLIES 2
hellohere
Pyrite | Level 9
proc sgplot data=_test dattrmap=mymap; series x=i y=tsvar /lineattrs=(color=red thickness=2 pattern=solid); refline refind/axis=x lineattrs=(thickness=2 pattern=solid); run;quit; Wanted: the refline for max and min shows up with diff color. Here only one color.

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