Home > Software design >  Is it possible to use sjplot::plot_model() to plot confidence interval along y-axis?
Is it possible to use sjplot::plot_model() to plot confidence interval along y-axis?

Time:01-19

I would like to plot vertical confidence interval graph instead of horizontal confidence intervals graph.

Something like this:

enter image description here

from enter image description here

To have the bars appear on the whiskers, you may need to draw over the default error bars as the width have been hard-coded.

p coord_fixed()   
  theme(axis.text.x = element_text(angle = 90))   
  geom_errorbar(
    aes_string(ymin = "conf.low", ymax = "conf.high"),
    width = 0.25
  )

enter image description here

  • Related