Hello I am trying to plot a bar graph with gglot, the graph has 20 values (20 bars) but I want the first 3 bars to fill in red and the rest in blue. Here is my code but its not giving me my desired output, it is still showing all the bars in blue.
ggplot(data = my_data, aes(x=reorder(cat, -total), y=total))+
geom_bar(stat = "identity", fill="blue")+
scale_fill_manual(values=c("red","red","red"))+
theme(axis.text.x = element_text(angle = 45, hjust=1))+
scale_y_continuous(labels = comma)
Greatful for all responses, thanks you.
