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

I'm using GTL code to make survival plots with a stepplot statement and the group = option to specify the different strata.

I was wondering how to go about and change the plot line colors manually rather than use the default colors. Can I do that in the GTL code directly?

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

The best choice for you is to use an attributes map. It gives you the ability to assign visual attributes to group values, regardless of data order. Check out these two blog posts for some examples:

http://blogs.sas.com/content/graphicallyspeaking/2012/02/27/roses-are-red-violets-are-blue/

http://blogs.sas.com/content/graphicallyspeaking/2012/03/01/roses-are-red-violets-are-blue-part-2/

Hope this helps!

Dan

View solution in original post

4 REPLIES 4
DanH_sas
SAS Super FREQ

What version of SAS do you have?

Reeza
Super User

SAS 9.3 TS1M1 I think

DanH_sas
SAS Super FREQ

The best choice for you is to use an attributes map. It gives you the ability to assign visual attributes to group values, regardless of data order. Check out these two blog posts for some examples:

http://blogs.sas.com/content/graphicallyspeaking/2012/02/27/roses-are-red-violets-are-blue/

http://blogs.sas.com/content/graphicallyspeaking/2012/03/01/roses-are-red-violets-are-blue-part-2/

Hope this helps!

Dan

Reeza
Super User

Thanks Dan.

I'm also looking at modify the style templates as well, specifically the GraphData1...GraphData attributes.

The data attributes map are probably the better long term solution though.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1258 views
  • 0 likes
  • 2 in conversation