[R] Colors in survival plots

Min-Han Tan minhan.science at gmail.com
Sun Jul 25 21:09:53 CEST 2004


Hi,

Sorry to trouble the list - I would like to ask a question - I can't
find the answer in the r-help archives.

I am trying to plot 2 survival curves in different colors.

What I have tried is this 
plot(survfit(sim.surv ~ sim.km.smpl),col="red")

but both the survival curves turn red... 

Your advice would be most appreciated! Thank you.

Min-Han




More information about the R-help mailing list