I am new to R Studio. Don’t know how to delete this post.
The labelling provided by gghistogram is more annotative, where you would pick particular points to label, if you want the bin counts, then probably its not the right tool. Something like this
library(tidyverse) #example data set.seed(42) (df <- tibble( scores=sample.int(100,1000,TRUE) )) # histogram with text counts ggplot(df, aes(scores)) + geom_histogram(bins = 8) + stat_bin(geom="text",bins=8,aes(label=..count..), vjust=-1)