get_survplot: Plots survival curves for survfit objects

Description Usage Arguments Value

Description

Uses tidy function from broom package to convert survfit object to a data frame. Uses ggplot to plot Kaplan-Meier survival curves.

Usage

1
get_survplot(survfit, xlim = NULL)

Arguments

survfit

survfit object to be used

xlim

optional, specifies the x-axis limits of the returned survival plot

Value

survival curves plotted with ggplot


loshita/oshitar documentation built on May 8, 2019, 11:12 p.m.