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..
I think you need to use scale_fill_manual since you are using the fill aesthetic.
library(tidyverse)
#> Warning: package 'tibble' was built under R version 4.1.2
DF <- data.frame(Station = c("A", "B", "C", "A", "B", "C"),
median = c(2,4,3,3,5,4),
Species = c("Y", "Y", "Y", "Z", "Z", "Z"))
ggplot(DF, aes(Station, median, fill = Species)) + geom_col()