Description Usage Arguments Value
View source: R/survival_fit_output.R
Assemble data from a fit tibble and plot
1 2 | plot_fit_tibble(fit_tibble, treatment, set_name, type, set_for_km = "all",
B_ci = 100, scale_time = 1, ...)
|
fit_tibble |
the output of |
treatment |
the treatment for which we want to plot. |
set_name |
subset name for all but the Kaplan-Meier curve. |
type |
PFS or OS |
set_for_km |
subset name for the Kaplan-Meier curve. |
B_ci |
number of simulations to use for confidence intervals
for |
scale_time |
times are multiplied by this. So if your fit was done on a time scale of days, and you want to plot by weeks, set this to 1/7 |
... |
additional parameters to pass to |
a list of two ggplot
plots - one for survival and one
for cumulative hazard
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.