Help please new to R

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


#example data
(df <- tibble(,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)