Creates a ggplot2-based KM survival curve from a survfit object. Supports stratified and unstratified curves with optional log-rank p-value.
Usage
plot_km(
km_result,
title = "Kaplan-Meier Survival Curve",
xlab = "Time (days)",
time_breaks = NULL
)