I ran a regression that looks as follows:
fit <- lmer(support ~ income + (1 | country), data = df)
When using summary(df), it shows me that for income, the minimum is -2.4 and the maximum is 2.6.
I would like to plot the predicted values. I tried by using the following code:
library(ggeffects)
library(ggplot2)
p1 <- ggpredict(reg1, terms = "income")
ggplot(p1, aes(x, predicted)) + geom_line() + geom_ribbon(aes(ymin = conf.low, ymax = conf.high), alpha = 0.1)
However, the plot goes from -3 to 3. How can I set the minimum and maximum values for the plot? I tried with min and max, but it did not work