Hello, I just noticed something that might be worth either fixing, if it is a bug, or at least mentioning in the documentation of plot_model().
For the mdrt.values argument, the documentation states that "minmax" is the default. I have found this to be the case if I call type="int", but if I call type="pred" it plots the "meansd" method. Specifying the argument to "minmax", does not change the plot in this case. Apologies if I've missed something in the documentation. Here is an example:
library(sjPlot)
mtcars$vs <- as.factor(as.character(mtcars$vs))
mtcars$am <- as.factor(as.character(mtcars$am))
m1 <- lm(mpg ~ vs * am * hp,
data = mtcars)
plot_model(m1,
type = "int")
plot_model(m1,
type = "pred",
terms = c("vs", "am", "hp"))
plot_model(m1,
type = "pred",
terms = c("vs", "am", "hp"),
mdrt.values = "minmax")
Hello, I just noticed something that might be worth either fixing, if it is a bug, or at least mentioning in the documentation of
plot_model()
.For the
mdrt.values
argument, the documentation states that "minmax" is the default. I have found this to be the case if I calltype="int"
, but if I calltype="pred"
it plots the "meansd" method. Specifying the argument to "minmax", does not change the plot in this case. Apologies if I've missed something in the documentation. Here is an example: