Produce a survival curve plot and number-at-risk table using survminer::ggsurvplot
and finalfit
conventions.
surv_plot(.data, dependent, explanatory, ...)
Dataframe.
Character vector of length 1: Survival object of the form Surv(time, status)
.
Character vector of max length 2: quoted name(s) of explanatory variables.
Arguments passed to ggsurvplot
.
Returns a table and plot produced in ggplot2
.
Other finalfit plot functions:
coefficient_plot()
,
ff_plot()
,
hr_plot()
,
or_plot()