Creates side-by-side Kaplan-Meier survival curves for the H and Hc subgroups.
plot_sg_km(
df_H,
df_Hc,
outcome.name,
event.name,
treat.name,
by.risk,
sg0_name,
sg1_name,
treat_labels,
colors,
show_ci = TRUE,
show_logrank = TRUE,
show_hr = TRUE,
hr_estimates = NULL,
conf.level = 0.95,
title = NULL,
...
)Invisible NULL (creates plot as side effect)
Data frame for H subgroup
Data frame for Hc subgroup
Character. Outcome variable name
Character. Event indicator name
Character. Treatment variable name
Numeric. Risk table interval
Character. Label for H subgroup
Character. Label for Hc subgroup
Named character vector. Treatment labels
List. Color specifications
Logical. Show confidence intervals
Logical. Show log-rank p-value
Logical. Show HR annotation
Data frame with HR estimates
Numeric. Confidence level
Character. Plot title
Additional arguments