[R] Survival statistics--displaying multiple plots

2007-05-02 Thread Gregory Pierce
Hello all! I am once again analyzing patient survival data with chronic liver disease. The severity of the liver disease is given by a number which is continuously variable. I have referred to this number as meld--model for end stage liver disease--which is the result of a mathematical

Re: [R] Survival statistics--displaying multiple plots

2007-05-02 Thread Gregory Pierce
I should clarify. I can generate plots for each category individually but not for all three on the same chart. Greg -Original Message- From: Gregory Pierce [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 10:21 PM To: 'r-help@stat.math.ethz.ch' Subject: Survival

Re: [R] Survival statistics--displaying multiple plots

2007-05-02 Thread Robert A LaBudde
? 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: I should clarify. I can generate plots for each category individually but not for all three on the same chart.

Re: [R] Survival statistics--displaying multiple plots

2007-05-02 Thread Petr Klasterecky
Have a look at ?lines ?points ?plot - the option add, add=TRUE You will have to specify proper limits on both axes, otherwise you may only see parts of the graphs. Some functions in the survival library also allow stratified analyses in which case the plots account for different strata. Petr

Re: [R] Survival statistics--displaying multiple plots

2007-05-02 Thread Gregory Pierce
: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: I should clarify. I can

Re: [R] Survival statistics--displaying multiple plots

2007-05-02 Thread Marc Schwartz
Greg, I suspect that you want something like this: Use the 'aml' dataset and create a 'meld' column with random values from 1:25: library(survival) set.seed(1) aml$meld - sample(25, 23, replace = TRUE) aml$meld [1] 7 10 15 23 6 23 24 17 16 2 6 5 18 10 20 13 18 25 10 20 24 6 [23] 17

Re: [R] Survival statistics--displaying multiple plots

2007-05-02 Thread Gregory Pierce
, and getting nowhere. I wish I were able to repay in some way. Thank you! Greg -Original Message- From: Marc Schwartz [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 12:18 AM To: Gregory Pierce Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Survival statistics--displaying multiple plots

Re: [R] Survival statistics--displaying multiple plots

2007-05-02 Thread Robert A LaBudde
: 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