可以用R语言做出包含具体频数的频数图吗

频数直方图每个小方块上这上面可以加上数字吗!please 倒腾半天没弄明白

使用text函数进行标注试试如下代码:

temp<- airquality$Temp
h <- hist(temp,ylim=c(0,40))
text(h$mids,h$counts,labels=h$counts, adj=c(0.5, -0.5))