I’ve written the following code to create a boxplot with multiple groups. I want each plot to be a different specified color but I can only seem to alter the first one in the series. I can change the first "blue" to any color but the other plots always stay gray. Any idea what I need to fix?
`ggplot(Boxplots, aes(x=SiteName, y= Concentration, fill=SiteName)) + geom_boxplot() + scale_y_log10() + theme_bw() + scale_fill_manual(breaks= Boxplots$SiteName, values= c("blue", "cornflowerblue","cyan", "red", "darkred", "maroon")) 
>Solution :
Try to move fill=SiteName from aes() to geom_boxplot() and remove breaks= Boxplots$SiteName, from scale_fill_manual()like this:
ggplot(Boxplots, aes(x=SiteName, y= Concentration)) +
geom_boxplot(fill=SiteName) + scale_y_log10() + theme_bw() +
scale_fill_manual(values= c("blue", "cornflowerblue","cyan",
"red", "darkred", "maroon"))