On Thu, 7 May 2009, John Sorkin wrote:

R 2.9.0
windows xp

I would like to have the two lines generated by my plot have different colors, 
in addition to the two different line types specified by the plot command 
below. I would appreciate advice on how I can specify line colors.

plot(survfit(Surv(Age,Died) ~ Rx, data = GVHDdata),lty=c(1,2),lwd=2)


 ,col=c("tomato","goldenrod")

    -thomas

Thomas Lumley                   Assoc. Professor, Biostatistics
tlum...@u.washington.edu        University of Washington, Seattle

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to