Hi,
I'm doing a geom_col plot and I used scale_fill_discrete to have my legend in descending order.
I also made my own colour palette to have the more distinctive colours in my plots.
But the problem is that my code doesn't take colour from my palette but use random colour and it's definitely not distinctive colour..
How can I figure it out ?
Here is my code :
#Plot
ggplot(x,aes(Station)) + geom_col(aes(y = Median, fill = Species),
color = "white") +
theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) +
scale_colour_manual(values=P20) +
scale_fill_discrete(breaks = legend_order)
Created on 2022-06-10 by the reprex package (v2.0.1)
Thanks