Hi there,
I’m trying to plot posterior predictions from a brms model in R.
I’ve been able to get them to look nice using mcmc_areas, but id really like to edit the colours more. I know they can be set with e.g., color_scheme_set(“brewer-Reds”), e.g.,:
However, id like the colours to be the other way around, e.g., a lighter outer line, and a dark fill of the area?
Ive looked in ggdist and other examples, but none seem to have a similar example.
Here’s my code so far:
off <- mcmc_areas(
posterior,
pars = c("a", "b",
"c", "d"),
prob = 0.89,
prob_outer = 0.95,
point_est = "mean"
)
off2 <- off +
xlim(-1, 1.5) +
scale_y_discrete(labels=c(
"a" = "Housing",
"b" = "Monkeys",
"c" = "Moomins",
"d" = "Roses"
))