I believe that you have to specify which variable is the x and also the y. I am not familiar with what you are doing, but it looks as though you need to specify both x and y to get it to plot.
Stephen On Mon, Oct 20, 2008 at 2:22 PM, A Van Dyke <[EMAIL PROTECTED]> wrote: > > I am trying to plot survival curves using the following code as an example: > >>rs1799964.coxph<-(coxph(Surv(sassurvmonths,status)~age+stage+rs1799964_TNFA,method="efron")) > >>plot(rs1799964.coxph,lyt=c(1,3),xlab="Survival in Months",ylab="Proportion > Surviving") > > I am gettingthe following error message: > > >>Error in xy.coords(x, y, xlabel, ylabel, log) : > 'x' and 'y' lengths differ > > > Any input to debugging this matter would be greatly appreciated. Thank you > in advance. > > -Alison > -- > View this message in context: > http://www.nabble.com/error-message-when-plotting-survival-curves-tp20075771p20075771.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Stephen Sefick Research Scientist Southeastern Natural Sciences Academy Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.