View source: R/gg_conditional_surv.R
gg_conditional_surv | R Documentation |
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 )
basekm |
|
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.