From: Austin, Matt <maustin_at_amgen.com>

Date: Mon 26 Jul 2004 - 05:14:18 EST

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jul 26 05:27:12 2004

Date: Mon 26 Jul 2004 - 05:14:18 EST

Try

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

--Matt

-----Original Message-----

From: r-help-bounces@stat.math.ethz.ch

[mailto:r-help-bounces@stat.math.ethz.ch]On Behalf Of Min-Han Tan
Sent: Sunday, July 25, 2004 12:10 PM

To: r-help@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.

Min-Han

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list

https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jul 26 05:27:12 2004

*
This archive was generated by hypermail 2.1.8
: Wed 03 Nov 2004 - 22:55:13 EST
*