I am trying to flip x and y for my survival analysis plot (using the survival/survminer package), but when I add coord_flip() to this line of code:
ggsurvplot(poop_fit, data = egg.data, pval = TRUE, conf.int = TRUE, coord_flip())
I get this error:
Error in .apply_surv_func(df, fun = fun) : Invalid 'fun' argument
Does anyone know if there is another way to flip the coordinates in survival analysis?