The googleVis package provides an interface between R and the Google Charts API. It allows users to create web pages with interactive charts based on R data frames. Charts are displayed locally via the R HTTP help server. A modern browser with Internet connection is required and for some charts a Flash player. The data remains local and is not uploaded to Google.
You find examples of all googleVis function on CRAN. Perhaps the best known example of the Google Chart API is the motion chart, popularised by Hans Rosling in his 2006 TED talk.
You can install the stable version from CRAN:
To install the current development version from github you need the devtools package and the other packages on which googleVis depends:
install.packages(c("devtools","RJSONIO", "knitr", "shiny", "httpuv"))
To install googleVis run:
library(googleVis) ?googleVis demo(googleVis)
See the googleVis package vignettes for more details. For a brief introduction read the five page R Journal article and go through our tutorial. More examples have been posted on Markus' blog.
This package is free and open source software, licensed under GPL 2 or later.
googleVis documentation by Markus Gesmann & Diego de Castillo is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Based on a work at https://developers.google.com/chart/interactive/docs/gallery.