plot_km_confint_polygon: Plot confidence interval polygon for KM curve

View source: R/kmplotting_helpers.R

plot_km_confint_polygonR Documentation

Plot confidence interval polygon for KM curve

Description

Plots a shaded polygon representing the confidence interval for a Kaplan-Meier survival curve.

Usage

plot_km_confint_polygon(x, surv, se, conf_level, col)

Arguments

x

Numeric vector of time points.

surv

Numeric vector of survival probabilities.

se

Numeric vector of standard errors of survival probabilities.

conf_level

Numeric; confidence level for interval (default 0.95).

col

Color for the polygon.

Value

Invisibly returns NULL. Used for plotting side effects.


weightedsurv documentation built on Dec. 23, 2025, 1:07 a.m.