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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.