This updates the previous RPubs, available at http://rpubs.com/walkerke/wdi_leaflet.

Let’s create a World Bank map of fertility in 2013 with a formatted quantile legend.

# devtools::install_github('walkerke/kwgeo')

library(kwgeo)

wdi_leaflet(indicator = "SP.DYN.TFRT.IN", 
            indicator_alias = "Total fertility rate", 
            year = 2013, 
            classes = 6, 
            colors = "RdPu")