In this question, a frequency figure can be created using ggplot. For example:
f <- factor(sample(letters[1:5], 100, r=T))
h <- table(f) / length(f)
dat <- data.frame(f = f)
ggplot(dat, aes(x=f, y=..count.. / sum(..count..), fill=f)) + geom_bar()
How do I now obtain data labels for each individual bar within the figure?
Thank you.