Getting ggthemes to work with marginal effects plots

Hi there,

the problem seems to be individual, due to active packages that mask functions and so on. However that may be, here it what works for me. I try to call the functions directly from their package so it is pretty explicit.

We have a formula of:

fit1 = brm(data = data,
         Y ~ A + B)

To modify color transparency the ggplot2 usage has to be: alpha(colour, alpha = NA), but that is not readily apparent from the documentation. Also, alpha tends to be loaded from a variety of packages like psych and that throws everything out the window.

So i call it directly like this:

p <- conditional_effects(fit1, 
                    effects = "A",
                    spaghetti = T,
                    nsamples = 500) %>% 
 plot(mean=F,
       spaghetti_args = list(colour = ggplot2::alpha("#21908D", .2)))

p[[1]]+see::theme_lucid()

Say if it helped :)
George