View source: R/plot_km_band_forestsearch.R
| quick_km_band_plot | R Documentation |
Convenience wrapper with sensible defaults for quick visualization.
quick_km_band_plot(df, fs.est, outcome.name, event.name, treat.name, ...)
df |
Data frame with analysis data. |
fs.est |
ForestSearch result object. |
outcome.name |
Character. Time-to-event column name. |
event.name |
Character. Event indicator column name. |
treat.name |
Character. Treatment column name. |
... |
Additional arguments passed to |
Invisibly returns the plot result.
## Not run:
# Quick plot with minimal configuration
quick_km_band_plot(df_analysis, fs_result, "os_months", "os_event", "treat")
# With reference subgroups
ref_sgs <- list(
age_young = list(subset_expr = "age < 65", color = "brown"),
age_old = list(subset_expr = "age >= 65", color = "grey")
)
quick_km_band_plot(df_analysis, fs_result, "os_months", "os_event", "treat",
ref_subgroups = ref_sgs, tau_add = 60)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.