How to better create stacked bar graphs with multiple variables from ggplot2?

后端 未结 5 877
野趣味
野趣味 2020-12-15 11:24

I often have to make stacked barplots to compare variables, and because I do all my stats in R, I prefer to do all my graphics in R with ggplot2. I would like to learn how t

5条回答
  •  無奈伤痛
    2020-12-15 11:53

    You don't need prop.tables or count etc to do the 100% stacked bars. You just need +geom_bar(position="stack")

提交回复
热议问题