powered by
A ggplot2 version of a Kaplan-Meier Plot
qkmplot(x, conf_int = FALSE, ...)qkmplot_bulid_data_frame(x)
qkmplot_bulid_data_frame(x)
object
logical if TRUE show the CI
Other arguments passed to survival::plot.survfit
a ggplot.
Functions to build, explicitly or implicitly, data.frames and then creating a ggplot2 KM plot.
vignette("qwraps2-graphics", package = "qwraps2") for additional examples.
vignette("qwraps2-graphics", package = "qwraps2")
# NOT RUN { # create a survfit object require(survival) leukemia.surv <- survival::survfit(survival::Surv(time, status) ~ x, data = survival::aml) qkmplot(leukemia.surv, conf_int = TRUE) # }
Run the code above in your browser using DataLab