I am trying to make bar charts using manual fill color. Right now I have the 5 default colors for the 5 columns. I would like to keep using 5 distinct colors but manually specified. I tried the scale_color_manual
option but it does not do the job. What am I doing wrong? Thank you.
mycolors <- c("#F8B195", "#F67280", "#C06C84", "#6C5B7B", "#355C7D")
sub_terms %>%
mutate(term=reorder_within(term, beta, topic)) %>%
ggplot(aes(term, beta, fill = factor(topic))) +
geom_col(show.legend = F) +
scale_color_manual(values=mycolors) +
facet_wrap(~ topic, scales = "free", nrow=1) +
coord_flip()+
scale_x_reordered()