Skip to content
Prev 114923 / 398500 Next

Survival statistics--displaying multiple plots

Thanks for replying Robert. Forgive me, it might be the hour or my
limitations, but I am a little unclear on how to implement your suggestion. 

In my original example,
A plot of the fraction of patients surviving following the procedure against
the number of days since the procedure would be generated for patients with
meld scores of less than 10. 

Similarly, if I wanted to generate a survival curve of patients with scores
of between 10 and 20, I can with the following:

 >plot(survfit(Surv(days,status==1),subset(tips,meld>10 & meld <20))


And for patients with meld>20,
But how do I display the curves in each cadre (meld<10, 10<meld<20, and
meld>20) on the same chart?

 
-----Original Message-----
From: Robert A LaBudde [mailto:ral at lcfltd.com] 
Sent: Wednesday, May 02, 2007 11:48 PM
To: Gregory Pierce
Subject: Re: [R] Survival statistics--displaying multiple plots

? layout()
? par()

E.g.,

layout(matrix(c(1,2,3),1,3,byrow=TRUE) #3 plots side-by-side

Then use plot() three times to generate each of your graphs.
At 11:14 PM 5/2/2007, Greg wrote:
continuously
Kaplan-Meier
is
================================================================
Robert A. LaBudde, PhD, PAS, Dpl. ACAFS  e-mail: ral at lcfltd.com
Least Cost Formulations, Ltd.            URL: http://lcfltd.com/
824 Timberlake Drive                     Tel: 757-467-0954
Virginia Beach, VA 23464-3239            Fax: 757-467-2947

"Vere scire est per causas scire"