I'm trying to set up of each bar, it would be interesting to have the count of each color as well (but that isn't the bullseye here). Also, I couldnt even dodge the count to it respective fill
ggplot(my_dataset, aes(x = , fill = )) +
stat_count() +
scale_fill_viridis_d(option = "viridis",
direction = 1) +
labs(x = "Município", y = "Contagem", title = "Histogram with flipped coordinates") +
coord_flip() +
theme_minimal() +
facet_wrap(vars(RTDT)) +
geom_text(stat = 'count', aes(label = ..count..))
I had to censure my image because these are sensible information of my organization.