Message-ID: <Pine.LNX.4.43.0905070711470.13433@hymn12.u.washington.edu>
Date: 2009-05-07T14:11:47Z
From: Thomas Lumley
Subject: Generating plots with two lines, each line plotted with a different color
In-Reply-To: <4A02953B020000CB00047458@medicine.umaryland.edu>
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
tlumley at u.washington.edu University of Washington, Seattle