survminer
Survival Analysis and Visualization
survminer is back after a five-year gap, and spending it cutting dependencies loose.
◆Recent moves
- 5mo ago
survMisc dependency removed; weighted log-rank tests moved in-house
Drops the at-risk survMisc dependency by reimplementing the weighted log-rank tests — Gehan-Breslow, Tarone-Ware, Peto-Peto, Fleming-Harrington and the trend test — in base R, with the notes stating existing method arguments behave identically. Also fixes GeomConfint under ggplot2 4.0.x and a surv_fit() failure using lists of formulas.
View source ↗ - 11mo ago
Risk-table misalignment fixed via dynamic panel detection
Fixes chart and risk-table misalignment under ggplot2 3.5 by detecting panels dynamically instead of using hardcoded grob indices, plus several aesthetic and diagnostic fixes. The misalignment was visible in every plot with a risk table, so this is the release that made the package usable again on current ggplot2.
View source ↗ - 1y ago
ggcoxzph() sd scaling corrected; tidyverse deprecations cleared
Raises the ggplot2 floor to 3.4.0, replaces deprecated tidyverse underscore functions and aes_string, and corrects the standard-deviation scaling factor in ggcoxzph(). That last fix changes what proportional-hazards diagnostic plots show.
View source ↗ - 5y ago
Gehan-Breslow p-value corrected for log.rank.weights = n
Corrects the Gehan-Breslow p-value when log.rank.weights is set to n, and works around ggplot2 3.3.0 rejecting vectorized element_text colors by switching ggsurvtable() to ggtext::element_markdown(). A result-changing fix in the same weighted-test family that 0.5.2 would later reimplement.
View source ↗ - 6y ago
broom 0.7.0 compatibility fix in ggforest()
A single maintenance change setting conf.int explicitly in ggforest()'s call to tidy.coxph for broom 0.7.0. Upstream churn absorption.
View source ↗ - 6y ago
surv_adjustedcurves() separates computation from plotting
Splits surv_adjustedcurves() out of ggadjustedcurves() so adjusted survival curves can be computed without plotting them, making median survival and other statistics available from the same machinery. A rare separation of calculation from drawing in this package.
View source ↗