Relative Content

Tag Archive for ggplot2survival-analysissurvivalsurvminerggfortify

ggsurvplot not displaying combined survival curve with add.all = TRUE when Faceting

I am trying to create survival plots using the survminer package in R with data split by genetic mutations and include a summary line representing all individuals across facets. The survival analysis and plotting work fine when not using add.all in ggsurvplot for multiple groups (split by sex and mutation type). However, when attempting to add a combined survival curve across facets using add.all = TRUE, it doesn’t show as expected. Below is a minimal reproducible example using the lung dataset: