I am using the following code to generate a plot of Kaplan-Meier survivor
curve
estimates:
censor <- censor(Time.of.Death,Interval.UpperLimit,Censor.Code)
KMPLE <- kaplanMeier(censor ~ Treatment, data=X)
plot(KMPLE,lty=c(1,1,4,3),col=c(8,4,6,5))
The plot looks beautiful, but has an automatically generated legend that I
wish to
remove. How can I best do this? I did not find a "par" command that
directly
suppresses legend/key output. I have considered covering up the default
legend
with a larger box with the "col=0" option to blend it into the background,
but this
seems very inelegant.
David Paul, Ph.D.
Battelle Memorial Institute
505 King Avenue
Columbus, OH 43201
614.424.3176
|