Make Frequency Histogram for Factor Variables

后端 未结 6 1434
野趣味
野趣味 2020-12-01 03:15

I am very new to R, so I apologize for such a basic question. I spent an hour googling this issue, but couldn\'t find a solution.

Say I have some categorical data in

6条回答
  •  情深已故
    2020-12-01 03:59

    It seems like you want barplot(prop.table(table(animals))):

    enter image description here

    However, this is not a histogram.

提交回复
热议问题