% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_survival.R
\name{create_survival_viz}
\alias{create_survival_viz}
\title{Kaplan–Meier Survival Curve (Visualization)}
\usage{
create_survival_viz(
  data,
  hrvar = "group",
  title = "Survival Curve",
  subtitle = "Kaplan–Meier estimate",
  caption = NULL
)
}
\arguments{
\item{data}{Long survival table produced by \code{create_survival_calc()}.}

\item{hrvar}{Character. Group column name in \code{data}.}

\item{title, subtitle}{Character. Plot annotations.}

\item{caption}{Character string for the plot caption. Typically the output
of \code{extract_date_range(data, return = "text")}, as constructed by
\code{create_survival()}. Defaults to \code{NULL} (no caption).}
}
\value{
ggplot object.
}
\description{
Renders a Kaplan–Meier step curve by group from a long-format survival table.
}
