geom-bar
Change bar plot colour in geom_bar with ggplot2 in r
If you want all the bars to get the same color (fill), you can easily add it inside geom_bar. ggplot(data=df, aes(x=c1+c2/2, y=c3)) + geom_bar(stat=”identity”, width=c2, fill = “#FF6666”) Add fill = the_name_of_your_var inside aes to change the colors depending of the variable : c4 = c(“A”, “B”, “C”) df = cbind(df, c4) ggplot(data=df, aes(x=c1+c2/2, y=c3, … Read more