View source: R/subgroup_consistency_helpers.R
| plot_subgroup | R Documentation |
Plots weighted Kaplan-Meier survival curves for a specified subgroup and its complement using the weightedsurv package.
plot_subgroup(df.sub, df.subC, by.risk, confs_labels, this.1_label, top_result)
df.sub |
A data frame containing data for the subgroup of interest. |
df.subC |
A data frame containing data for the complement subgroup. |
by.risk |
Numeric. The risk interval for plotting (passed to |
confs_labels |
Named character vector. Covariate label mapping (not used directly in this function, but may be used for labeling). |
this.1_label |
Character. Label for the subgroup being plotted. |
top_result |
Data frame row. The top subgroup result row, expected to contain a |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.