adjustedPlot2 | R Documentation |
Draw a survfitted plot
adjustedPlot2(fit, se = FALSE, mark.time = FALSE)
fit |
An object of class coxph or survfit |
se |
logical Whether or not show se |
mark.time |
logical Whether or not mark time |
a ggplot
library(survival)
fit=coxph(Surv(time,status)~rx+logWBC,data=anderson)
plot(survfit(fit),conf.int=TRUE)
adjustedPlot2(fit,se=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.