How can I annotate the following plot? I want to include counts on top of each bar.
g <- ggplot(mpg, aes(class))
# Number of cars in each class:
g + geom_bar()
I only know how to do it if I do a group by and create a new column 'count' for example.
