Hi Cynthia,
I just created a simple survival charts and would like to change the colorsf from red and blue into something else - like purple & orange.
Below is my code and the chart that I have. Would you please let me know where I did wrong? Thannk you!
Lindsey
--**********
ods graphics on;
proc template;
define style Styles.StatColor;
parent = Styles.HTMLBlue;
style GraphData1 from GraphData1 / contrastcolor = purple;
style GraphData2 from GraphData2 / contrastcolor = orange;
end;
run;
ods listing style=StatColor;
proc lifetest data = sorted_raw_data alpha = 0.05 plots(only) = survival(cl);
time miles * censored(0);
by truck;
strata population;
run;
proc template;
delete Styles.StatColor;
run;
ods graphics off;
--**********
Off hand you changed the contrast color, which is often used to create the contrast color as in the boundary of a bar in a bar chart and not the primary color used to create the lines or bars themselves. First start would be to use COLOR= instead of CONTRASTCOLOR.
You might also investigate the %modstyle macro in online help.
I am still struggling with this issue and finding the code to adjust the tick marks on the y-axis without messing up the default templates. I am find saving the adjustments in the SAS work space so when I close out SAS I can still keep the default.
Can someone share code that would allow me to do that. Full code example would be helpful and I am new to this and need some hand holding. lol.
Thanks.
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 the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.