Following the idea posted on James Cheshire’s blog (here), I have tried to play a little bit with R and Google. And it works ! Consider for instance life expectancy at birth (that can be found – and downloaded – here). Using the following code, it is possible to generate an R graph in a web page,
Map<- data.frame(input$Country.or.Area, input$Value)
names(Map)<- c("Country", "Age")
Geo=gvisGeoMap(Map, locationvar="Country", numvar="Age",
(ok, there are still some problems with some countries – e.g. Russia and the US – but it should not be that difficult to fix). Thanks James, this is awesome !