Site icon R-bloggers

New World Bank Data Available

[This article was first published on R-Chart, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Just announced:  World Bank Data features and data are available.  Previous posts have demonstrated how to access and plot this data using R (including the use of the R WDI package).  The chart above can be created using the following program in R.

library(ggplot2)
library(WDI)



DF <- WDI(country=c(“US”,”FR”,”DE”,”GB”,”CN”,”RU”,”IN”), indicator=”SP.POP.TOTL”, start=1990, end=2008)

ggplot(DF, aes(year, SP.POP.TOTL, ggplot(DF, aes(year, SP.POP.TOTL, color=country))+geom_line(stat=”identity”)+theme_bw()+xlab(“Year”)+opts(title=”Total Population”)+ylab(“”)

To leave a comment for the author, please follow the link and comment on their blog: R-Chart.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.