0

enter image description here

ggplot(data=data2006.all, aes(x = Month,y=Cancelled)) + geom_histogram(stat="identity", fill ="Brown") + ggplot2::labs(title ="2006 Flight cancellation")

This is the code I used. May I know how do I add the number of cancellations for each bar on the plot? thank you.

MLavoie
  • 9,671
  • 41
  • 36
  • 56
jerry
  • 21
  • 4
  • Welcome to SO! Your question is not ok with SO standard (please, read [this](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)), and it's going to be close. Furthermore, it seems a common problem, try to look at `geom_text()`. – s__ Oct 08 '21 at 13:50
  • It's not clear what you want. Labels above the bars? Ticks and values on the x axis for each bar? Also you should add a [minimal reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example/5963610#5963610) – dario Oct 08 '21 at 13:52

0 Answers0