0

I have the following plot:

enter image description here

And since the y values are quite different from one another, I think it'd be more useful to show each value on top of each bar rather than putting the y scale on the left.

Here's my code so far:

  geom_histogram(binwidth = 0.5, color="white", fill="turquoise") +
  labs(x = NULL, y = "Frequência de Faxinas")+
  scale_x_continuous(breaks = c(1:12), labels = c("Jan",
                     "Fev", "Mar", "Abr", "Mai",
                     "Jun", "Jul", "Ago", "Set","Out",
                     "Nov","Dez"))

I'm looking at the ggplot cheat sheet but I'm not sure what I should be looking for to find this information. It'd be really helpful if anyone could shed some light.

  • 1
    Searching for [`[r] ggplot2 barplot label`](https://stackoverflow.com/search?q=%5Br%5D+ggplot2+barplot+label) produces many good references, including this excellent answer: https://stackoverflow.com/q/11938293/3358272. Replace `barplot` with `histogram` and you get many more, including https://stackoverflow.com/q/24198896/3358272. – r2evans Jan 04 '22 at 22:15

0 Answers0