Skip to content
Prev 19439 / 398500 Next

plot survival points

Em Qui 02 Mai 2002 14:42, Thomas Lumley escreveu:
Hi Thomas
I try it, but the graphic make is not a point graphic, is a ?scale? plot, 
like this:

|_
| |_
|   |
|   |__
|      |_
|        |_
|_____________

I need the same graphic, but with point like this:

|
| *
|   *
|   *
|       *
|         *
|____________

I try to change the type (plot(survfit(Surv(tempo,censor)~trat),type="p")), 
but  dont work:(((. I try to use points(survfit(Surv(tempo,censor)~trat), but 
this only work over the plot graphics with ?scales lines? I try to plot using 
type="n" but dont work too. Whem I use type the error appear:

Error in plot.default(tempx, tempy * yscale, type = "n", log = logax,  : 
	formal argument "type" matched by multiple actual arguments

Exist a mode for save the data to be plotted, saving all points calculated by 
the function survfit(Surv(tempo,censor)~trat in a object?

Thanks for all
Inte mais
Ronaldo