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?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.