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?
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
What version of SAS do you have?
SAS 9.3 TS1M1 I think
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
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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.