Re: [R] Unable to get Legend with survplot rms package

2009-10-26 Thread Aric Gregson
On Mon, 26 Oct 2009 15:54:08 -0700 Frank E Harrell Jr wrote: > Best to take a break and read over more documentation. Got it!! Thank you very much! Aric IMPORTANT WARNING: This email (and any attachments) is ...{{dropped:9}} __ R-help@r-project.or

Re: [R] Unable to get Legend with survplot rms package

2009-10-26 Thread Aric Gregson
On Mon, 26 Oct 2009 15:54:08 -0700 Frank E Harrell Jr wrote: > But fit.example1 is a cph object. It can go directly to survplot. > > Best to take a break and read over more documentation. Yes, doesn't work as I noted. I'll keep reading as I have been, but this is the closest I have gotten to ma

Re: [R] Unable to get Legend with survplot rms package

2009-10-26 Thread Frank E Harrell Jr
Aric Gregson wrote: On Mon, 26 Oct 2009 15:10:42 -0700 Frank E Harrell Jr wrote: survplot(survest(fit.example1), n.risk=T, conf='none', cex.n.risk=.85, dots=T, col='gray10', lty=2) The argument to survplot should be a cph or psm or survfit object (or a survest result on a psm object). My ap

Re: [R] Unable to get Legend with survplot rms package

2009-10-26 Thread Aric Gregson
On Mon, 26 Oct 2009 15:10:42 -0700 Frank E Harrell Jr wrote: > > survplot(survest(fit.example1), n.risk=T, conf='none', > > cex.n.risk=.85, dots=T, col='gray10', lty=2) > > The argument to survplot should be a cph or psm or survfit object (or > a survest result on a psm object). My apologies, al

Re: [R] Unable to get Legend with survplot rms package

2009-10-26 Thread Frank E Harrell Jr
Aric Gregson wrote: On Mon, 26 Oct 2009 13:21:23 -0700 Frank E Harrell Jr wrote: Please send exact code for an example that fails. If possible, generate the data using a simple simulation to make the example reproducible. endtime <- c(251,753,753,791,732,1081,184,713,674,732,254, 644,782,75

Re: [R] Unable to get Legend with survplot rms package

2009-10-26 Thread Aric Gregson
On Mon, 26 Oct 2009 13:21:23 -0700 Frank E Harrell Jr wrote: > Please send exact code for an example that fails. If possible, > generate the data using a simple simulation to make the example > reproducible. endtime <- c(251,753,753,791,732,1081,184,713,674,732,254, 644,782,753,278,184,715,832,

Re: [R] Unable to get Legend with survplot rms package

2009-10-26 Thread Frank E Harrell Jr
Aric Gregson wrote: Hello, I apologize for the post as I am certainly overlooking a simple solution to my difficulties with getting a legend to print on a survplot from the rms package. I am plotting the following: survplot(survest(fita), n.risk=T, conf='none', cex.n.risk=.85, dots=T, col='gra

[R] Unable to get Legend with survplot rms package

2009-10-26 Thread Aric Gregson
Hello, I apologize for the post as I am certainly overlooking a simple solution to my difficulties with getting a legend to print on a survplot from the rms package. I am plotting the following: survplot(survest(fita), n.risk=T, conf='none', cex.n.risk=.85, dots=T, col='gray10', lty=2) survplot(