New World Bank Data Available

September 22, 2010
By

(This article was first published on R-Chart, and kindly contributed to R-bloggers)


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 his blog: R-Chart.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.