Message-ID: <20090507120658.GA13460@anakin.ifi.uio.no>
Date: 2009-05-07T12:06:58Z
From: Zeljko Vrba
Subject: Generating plots with two lines, each line plotted with a different color
In-Reply-To: <4A02953B020000CB00047458@medicine.umaryland.edu>
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.