Regarding adding bar labels at the top of each bar in ggplot() in Rstudio

If the part you're stuck on is what to do when the values you want as bar labels aren't already in your data frame (since geom_bar() is calculating the counts for you), then this StackOverflow answer shows how to do it:

By the way, the code you posted has a couple of different syntax errors and won't run as-is. We strongly encourage people posting here to use the tools in the reprex package, which helps to catch that sort of thing before you post.

1 Like