plotSurv | R Documentation |
Plot survival curves
plotSurv(fit, pval = TRUE, ...)
fit |
a survfit object |
code from http://www.sthda.com/english/wiki/survival-analysis-basics
graph
JuG
require(survival)
fit <- survfit(Surv(time, status) ~ sex, data = lung)
plotSurv(fit)
fit <- survfit(Surv(time, status) ~ 1, data = lung)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.