I plot an interaction in my linear model by using plot_model (https://www.rdocumentation.org/packages/sjPlot/versions/2.8.7/topics/plot_model):
plot_model(LME_model, type = "pred", terms = c("match_sp",
"response"),
colors = c("blue", "magenta3"),
alpha = 0.15)
And get these sticks, which look not so nicely:
However, I would like to have a bar plot, so I add some lines to the code:
plot_model(LME_model, type = "pred", terms = c("match_sp",
"response"),
colors = c("blue", "magenta3"),
alpha = 0.15) +
geom_bar (position=position_dodge(), stat = "identity", width=0.5, alpha = 0.3) +
coord_cartesian(ylim=c(550,700))
Now it looks much better:
But now these whiskers produced before are located not at central points of those bars, as it should be the case. Does anyone know how to fix this problem?..