Hi, I try to create a histogram to show the distribution of sick days reported by our organization.
below is my code.
ggplot(data,mapping=aes(x=Annualized.Sick.Days,y=..count..,label=..count..,fill=Direct.Indirect))+
geom_histogram(binwidth=10,color="white")+
scale_x_continuous(breaks = seq(30, 100, 10), lim = c(30, 100))+
theme_classic2() +
geom_text(stat="bin", size=2,vjust=0)
Unfortunately, the labels are not in place, it looks there are more data labels than it should be.