On Thu, May 07, 2009 at 08:00:59AM -0400, John Sorkin wrote:
> 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)
> 

Try adding col=c("red","blue") as additional parameter.

______________________________________________
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