R ggplot geom_bar()标签栏(带计数)
我有这样一个情节:R ggplot geom_bar()标签栏(带计数),r,ggplot2,statistics,R,Ggplot2,Statistics,我有这样一个情节: ggplot(df,aes(x=DateDiff, fill=TEAM)) + geom_bar() 在没有定义y轴的情况下,如何使用y轴的结果标记条形图?(不改变df) ggplot(mtcars, aes(x = gear)) + geom_bar()+ geom_text(stat='count',aes(label=..count..),vjust=-1)
ggplot(df,aes(x=DateDiff, fill=TEAM)) + geom_bar()
在没有定义y轴的情况下,如何使用y轴的结果标记条形图?(不改变df)
ggplot(mtcars, aes(x = gear)) + geom_bar()+
geom_text(stat='count',aes(label=..count..),vjust=-1)