Description Usage Arguments Value
Uses tidy function from broom package to convert survfit object to a data frame. Uses ggplot to plot Kaplan-Meier survival curves.
1 | get_survplot(survfit, xlim = NULL)
|
survfit |
survfit object to be used |
xlim |
optional, specifies the x-axis limits of the returned survival plot |
survival curves plotted with ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.