powered by
Draw a survfitted plot
adjustedPlot2(fit, se = FALSE, mark.time = FALSE)
a ggplot
An object of class coxph or survfit
logical Whether or not show se
logical Whether or not mark time
library(survival) fit=coxph(Surv(time,status)~rx+logWBC,data=anderson) plot(survfit(fit),conf.int=TRUE) adjustedPlot2(fit,se=TRUE)
Run the code above in your browser using DataLab