Displaying 1 result from an estimated 1 matches for "shortishcr1".
2005 Mar 17
1
Legend positioning in scaled survival plot
I am sorry that this is another novice question. I am having trouble
using "legend" with the survival curve plot from the survival package,
and I wonder if it is because I have rescaled my plot.
Here is the relevant segment of code:
> plot(survfit(Surv(OS,Status)~shortishcr1),main='Overall Survival by
factor',
+ xlab='Years',ylab='% surviving',lty=c(1,2),xscale=365.25,yscale=100)
> legend(5,80,c('Factor=1','Factor=2'),lty=c(1,2))
Here the variable OS is in days, but I want to plot it in years, so I
scale it; likewise y is sc...