The release of the R package “googleVis” has made the production of interactive maps through Google’s Chart Tools a simple task. Ignoring the some basic data manipulation the below map was produced with these two lines of code:
library(googleVis)
Geo=gvisGeoMap(Map, locationvar=”Country”, numvar=”Percentage”,
options=list(height=350, dataMode=’regions’))
plot(Geo)
This map, although simple to produce, is nontrivial as it shows the percentages of 5-14 year olds in each country conducting child labour. You can download the data for it here, and the rest of the R code here.
Using R to Map with Google Chart Tools
Tags

James Cheshire is Professor of Geographic Information and Cartography in the UCL Department of Geography and the inaugural director of the UCL Social Data Institute. A world-leading map maker and geographer, his cartographic creations have been enjoyed by millions.