I'm trying to plot faceted survival curves with autoplot but the combination of covariates and facetting them duplicates levels within the factors
library(survival)
library(ggfortify)
fit <- survfit( Surv(time, status) ~ inst + sex,
data = lung )
autoplot(fit, facets = TRUE)
Error in `levels<-`(`*tmp*`, value = as.character(levels)) :
factor level [3] is duplicated
Has anyone successfully plotted faceted survival curves with autoplot? I tried survminer but the plot looks horrific with the covariates taking up most of the plot area.