Re: [R] problem with the legend when having two plots

2009-06-11 Thread David Winsemius
On Jun 11, 2009, at 9:23 AM, kayj wrote: I am trying to plot survival curves and here is the code plot(survfit(Surv(days,status)~group, data=g3), lty=1:2, mark.time=F, ylab="Probability", xlab="Suvival Time in Month") legend(10, 0.2,legend=c("Control","RIT"), lty=c(2,1), title="Hormonal Thera

[R] problem with the legend when having two plots

2009-06-11 Thread kayj
I am trying to plot survival curves and here is the code plot(survfit(Surv(days,status)~group, data=g3), lty=1:2, mark.time=F, ylab="Probability", xlab="Suvival Time in Month") legend(10, 0.2,legend=c("Control","RIT"), lty=c(2,1), title="Hormonal Therapy", bty="n") I will get two survival plot