ggadjustedcurves.single <-
function(data, fit) {
time <- surv <- variable <- NULL
pred <- survexp(~1, data = data, ratetable = fit)
curve <- data.frame(time = c(0,pred$time),
variable = "total",
surv = c(1, pred$surv))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.