I want all the street flood bar graphs to be the same color, as well as storm drains. I had to make them different colors and numbers (1, 2) because when I tried to put fill what it did was that it only showed me one street flood bar instead of 3.
ggplot(floodd, aes(x = community, y = materials, fill = flooding)) +
geom_bar(stat = "identity", position = position_dodge(width = 0.9)) + labs(fill="Flood type") + theme(text = element_text(family = "A")) +
scale_y_continuous(breaks = scales::breaks_width(1000)) +
guides(x = guide_axis(angle = 90)) +
scale_fill_brewer(palette = "RdBu")
Example:
New contributor
Lisse is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.