gg_conditional_surv.Rd
gg_conditional_surv
produces a Kaplan-Meier plot for a variety of times on
which to condition using ggplot2
gg_conditional_surv(
basekm,
at,
main = NULL,
xlab = "Years",
ylab = "Survival probability",
lwd = 1
)
survfit
object
vector of times on which to condition
plot title
x-axis label
y-axis label, defaults to "Survival probability"
plot line width, defaults to 1
A ggplot with a line for the overall Kaplan-Meier plot and one
additional line for each value in at
#' @details See the vignette at http://www.emilyzabor.com/condsurv/articles/plot_cs.html for details and examples.