sjPlot
sjPlot copied to clipboard
Question: plot_model() to retain factor levels as labels
Hello and thank you for this great package!
I have a question: when plotting a model with interaction effects, these effects do not use the "Male" as a label for the plot. Can these be used? Unfortunately, I don't find any information on this...
` library(sjmisc) library(sjPlot) data(efc) efc <- to_factor(efc, c161sex, e42dep, c172code)
levels(efc$c161sex)
m <- lm(neg_c_7 ~ c161sex * c12hour, data = efc)
sjPlot::plot_model(m, auto.label = TRUE)`
This can be seen here on the bottom.