sjPlot icon indicating copy to clipboard operation
sjPlot copied to clipboard

Question: plot_model() to retain factor levels as labels

Open M-Colley opened this issue 3 years ago • 0 comments

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.

image

M-Colley avatar Dec 16 '21 13:12 M-Colley