A walk around the googleVis package

googleVis is a package in R that mainly interfaces R and Google Chart's API. This means that you can create Google charts within R via high-level functions. This has the great advantage of not needing to make service calls and parse the objects to generate the charts. Unlike traditional plotting in R, Google charts are displayed in a browser. In fact, their plot creation functions do not display a plot directly but generate an HTML code.

When working under R but not in a Shiny application, a plot() call with the HTML object as argument automatically opens a browser with the corresponding plot. The following is an example of this:


iris.table <- aggregate(Petal.Length ~ Species, data=iris, FUN="mean") ...

Get Learning Shiny now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.