[英]How to plot a graph for the output of table() in R for Categorical variables against their occurring frequencies?
library(gapminder)
a <- table(gapminder$continent)
a
# Africa Americas Asia Europe Oceania
# 624 300 396 360 24
How do I plot a histogram in R for the below table where categorical should be in the X-axis and frequencies should be on the y-axis?如何在 R 中为下表绘制直方图,其中分类应在 X 轴上,频率应在 y 轴上?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.