I'm doing some plotting of some mixed models I've been running and am pulling my hair out trying to make sjp.lmer()
change the x and y axis labels of a fixed effect. If I'm missing something simple, please let me know!
This is my code:
library(sjPlot);library(lme4)
model = lmer(DV ~ IV + (1|groupingVariable), data = data, REML = F)
sjp.lmer(model,
type = "fe.slope",
vars = c("IV"),
title = "Estimated effect of IV1 on DV",
geom.colors = c("black", "grey49"),
show.ci = T,
axis.title = c("IV Title", "DV Title"))
Model is a formal model estimated using glmer(). The problem is that regardless of what I write, the x and y labels do not change.
I think the syntax is correct, because this code works:
sjp.lmer(model,
type = "re",
sort.est = "sort.all",
facet.grid = F,
axis.title = c("IV Title", "DV Title"))
This second being a plot of the random effects for the same model. Is this a bug? Can you for some reason not specify axis labels for fixed effect models? Thank you!
Seems like a bug. I've raised the issue on gitHub at: