Show frequencies along with barplot in ggplot2

前端 未结 5 1011
既然无缘
既然无缘 2020-11-28 11:04

I\'m trying to display frequencies within barplot ... well, I want them somewhere in the graph: under the bars, within bars, above bars or in the legend are

5条回答
  •  悲哀的现实
    2020-11-28 11:18

    When wanting to add different info the following works:

    ggplot(mydata, aes(x=clusterSize, y=occurence)) +
    geom_bar() + geom_text(aes(x=clusterSize, y=occurence, label = mydata$otherinfo))
    

提交回复
热议问题