s-news
[Top] [All Lists]

Legend/Key in Kaplan-Meier plots

To: "'s-news@lists.biostat.wustl.edu'" <s-news@lists.biostat.wustl.edu>
Subject: Legend/Key in Kaplan-Meier plots
From: "Paul, David A" <paulda@BATTELLE.ORG>
Date: Tue, 18 Jun 2002 12:55:49 -0400
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


<Prev in Thread] Current Thread [Next in Thread>