# Plot two Survival curves on one plot.
# need data set for this example
# s1<- icfit(left[treatment==1],right[treatment==1])
# s2<- icfit(left[treatment==2],right[treatment==2])
# icplot(s1$surv,s1$time,xrange=range(c(s1$time,s2$time)))
# icplot(s2$surv,s2$time,lines.only=TRUE,LTY=2)
Run the code above in your browser using DataLab