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!
ods graphics on;
define style Styles.StatColor;
parent = Styles.HTMLBlue;
style GraphData1 from GraphData1 / contrastcolor = purple;
style GraphData2 from GraphData2 / contrastcolor = orange;
ods listing style=StatColor;
proc lifetest data = sorted_raw_data alpha = 0.05 plots(only) = survival(cl);
time miles * censored(0);
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.
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.
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.