Renders a Kaplan–Meier step curve by group from a long-format survival table.
create_survival_viz(
data,
hrvar = "group",
title = "Survival Curve",
subtitle = "Kaplan–Meier estimate",
caption = NULL
)ggplot object.
Long survival table produced by create_survival_calc().
Character. Group column name in data.
Character. Plot annotations.
Character string for the plot caption. Typically the output
of extract_date_range(data, return = "text"), as constructed by
create_survival(). Defaults to NULL (no caption).