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)A data frame containing data for the subgroup of interest.
A data frame containing data for the complement subgroup.
Numeric. The risk interval for plotting (passed to weightedsurv::df_counting).
Named character vector. Covariate label mapping (not used directly in this function, but may be used for labeling).
Character. Label for the subgroup being plotted.
Data frame row. The top subgroup result row, expected to contain a Pcons column for consistency criteria.