02-23-2010 11:03 AM
02-23-2010 11:38 AM
03-17-2014 03:43 PM
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;
03-17-2014 04:00 PM
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.