inst/doc/h-world-bank-data.R

## ---- hold=TRUE, warning=FALSE, message=FALSE---------------------------------
library(choroplethr)
library(WDI) 

choroplethr_wdi(code="SP.POP.TOTL", year=2012, title="2012 Population", num_colors=1)

## ---- hold=TRUE, warning=FALSE, message=FALSE---------------------------------
choroplethr_wdi(code="SP.DYN.LE00.IN", year=2012, title="2012 Life Expectancy")

## ---- hold=TRUE, warning=FALSE, message=FALSE---------------------------------
choroplethr_wdi(code="NY.GDP.PCAP.CD", year=2012, title="2012 Per Capita Income")

Try the choroplethr package in your browser

Any scripts or data that you put into this service are public.

choroplethr documentation built on July 9, 2023, 5:35 p.m.