I have a mixed effects linear model and I want to plot it using the sjPlot package. I have added a geom-ribbon layer for the CI of each reg line, but I just can't figure how to change it's fill color. Idealy I'd want each ribbon to be the same color as it's reg line.
Here is my code for the model:
model <- lme(no_stickers_gave_stranger ~ s_negativeAff*parent_model,
data = table4, random = ~1|ifam)
And here is the code for the plot:
plot_model(model = model, line.size = 0.71, type = "int",
colors = sjplot_pal(palette = "metro"),
axis.title = c("Negative Emotionality",
"Number of sticker shared with a stranger"),
title = "Age 6 - LAB-TAB",
legend.title = "Parent Model") +
scale_fill_sjplot(palette = "metro", discrete = T) +
geom_ribbon(aes(ymin = conf.low, ymax = conf.high), colour = NA, alpha = 0.25)
The best I could do is this: