googleVis 0.4.3 released with improved Geocharts
The Google Charts Tools provide two kinds of heat map charts for geographical data, the Flash based Geomap and the HTML5/SVG based Geochart.
I prefer the Geochart as it doesn’t require Flash, but so far there have been two shortcomings with it: I couldn’t add additional tooltip information and the default Mercator projection shows Greenland the size of Africa. Both of those issues seemed to have been resolved by Google. Although the features aren’t officially documented and released yet, Mitchell Foley from the Google Chart Tools team presented the new developments at the Google I/O 2013 conference in May already.
With version 0.4.3 of googleVis, and thanks to John Muschelli, gvisGeoChart
gained a new argument hovervar
allowing users to add further information to the tooltip. Additionally, following the examples in Mitchell’s presentation I can change the projection as well. The official release from Google shouldn’t be too far away.
gvisGeoChart
, setting the projection to Kavrayskiy VII and the tooltip to the actual rating letter(s), see the R code below.
R code
Session Info
R version 3.0.1 (2013-05-16)
Platform: powerpc-apple-darwin8.11.0 (32-bit)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] googleVis_0.4.3
loaded via a namespace (and not attached):
[1] RJSONIO_1.0-3
Citation
For attribution, please cite this work as:Markus Gesmann (Jun 18, 2013) googleVis 0.4.3 released with improved Geocharts. Retrieved from https://magesblog.com/post/2013-06-18-googlevis-043-released-with-improved/
@misc{ 2013-googlevis-0.4.3-released-with-improved-geocharts,
author = { Markus Gesmann },
title = { googleVis 0.4.3 released with improved Geocharts },
url = { https://magesblog.com/post/2013-06-18-googlevis-043-released-with-improved/ },
year = { 2013 }
updated = { Jun 18, 2013 }
}