facet_survival_comp: facets of a fitted survival object

Description Usage Arguments Examples

View source: R/faceted_survival.R

Description

This function allows you facet a fitted survfit object. Generally, it is an modified version of ggsurvplot_facet which uses geom_smooth for more comparison of the survival curve.

Usage

1
facet_survival_comp(fit, data, facet_vector, ncol = 2, title = NULL)

Arguments

fit

the fitted object

data

the dataframe (or tibble) used to fit the survfit object

facet_vector

the variable(s) to facet by, could be 1+ , must be a string

title

obtional title for the plot

number

of columns, default = 2

Examples

1
facet_survival(fit_survival, dat, "beep", ncol = 3, title = "Faceted Survival Function")

AlexanderNBrand/ExSurv documentation built on Oct. 30, 2019, 4:11 a.m.