'Plot_model : changing line AND error colors with +scale_colour_manual
I inherited some code where a person is plotting an interaction as follows:
chrt<-plot_model(lm1,type="pred",terms=c("Diff","group"))
I was told that I could change the colors by inserting the following code at the end of the line:
+scale_colour_manual(labels = c("A", "B", "C"),values = c("#2581da","#BC53DF","#FFB065"))
Previously, the code was plotting red, blue, green (left image). When I made the change above, it changes the line colors, but the shadows around the lines remain red/blue/green (right image). How can I fix it so the shadows match the new line colors? Or, is there another way to achieve this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


