I trying add median survival line to my plot(by using argument surv.median.line), and get the same error. What is wrong?
ggsurvplot(fit, pval = FALSE, conf.int = FALSE, legend.title = "Sleep status", legend.labs = c("Good", "Bad"), risk.table = TRUE, risk.table.y.text.col = TRUE, ggtheme = theme_classic(), palette = c("Black", "Black"), linetype = "strata", censor = FALSE, ylab ="Percent Survival", xlab ="Time(months)", fun=function(y)100*y, ylim=c(0,100), surv.median.line = "hv")
That what I get:
'Error in match(x, table, nomatch = 0L) :
'match' requires vector arguments'
I also asked in https://stackoverflow.com/q/57025405/10569922