[R] Colors in survival plots

Austin, Matt maustin at amgen.com
Sun Jul 25 21:14:18 CEST 2004


plot(survfit(sim.surv ~ sim.km.smpl), col=c("red", "blue"))


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Min-Han Tan
Sent: Sunday, July 25, 2004 12:10 PM
To: r-help at stat.math.ethz.ch
Subject: [R] Colors in survival plots


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.


R-help at stat.math.ethz.ch mailing list
PLEASE do read the posting guide!

More information about the R-help mailing list