gg_conditional_surv: Generate conditional survival plots using ggplot2

Description Usage Arguments Value

Description

gg_conditional_surv produces a Kaplan-Meier plot for a variety of times on which to condition using ggplot2

Usage

1
2
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


zabore/condsurv documentation built on May 4, 2019, 8:47 p.m.