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)

Arguments

basekm

survfit object

at

vector of times on which to condition

main

plot title

xlab

x-axis label

ylab

y-axis label, defaults to "Survival probability"

lwd

plot line width, defaults to 1

Value

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.