Brms ploting by marginal_effects

Hi everyone!

I’m trying to using brms package and plotting the result and I used “marginal_effects” but the color is not good for me.

Could I change the color of the lines?

I writing the code as below.

marginal_effects(data,effects = “x1:x2”)

Then plotted yellow and violet lines of each category… but want to change that blue and red lines.

I am sorry to trouble you, but please reply regarding this matter.

  • Operating System: Windows 10
  • brms Version:2.8.0
1 Like

Hello :)

I think you can use ggplot2 functions such as 'scale_discrete_manual()".

Lucas

Thank you so much, ldeschamps!!
This was very helpful for me.

Thank you for your kindness.