I am performing a multilevel (logistic) regression with two predictors, B and C. B and C have similar ranges so they can reasonably be shown using the same units in the x-axis. I want to do this because I want to highlight in my figure how they have different slopes.
When I try to do so using plot_model and the code below, one of the variables gets sent to the legend and I get this. However, I would rather have this.
Can this be done?
Thanks for the help!
df_test <- data.frame('subj' = c('Joe', 'Joe', 'Joe', 'Moe', 'Moe', 'Moe'), 'A' = c(1, 0, 1, 0, 1, 1), 'B' = c(3, 2, 1, 4, 3, 3), 'C' = c(3, 3, 2, 1, 3, 0))
m = glmer(A ~ B + C + (B + C| subj), data=df_test, family='binomial')
print(plot_model(m, terms = c('B', 'C'), type='pred'))