1 Introduction
1.1 Motivation
More and more data is becoming available, and yet stories and insights are still often
missed: we are lost in the data jungle and struggle to see the wood for the trees.
Hence, new tools are required to bring data to life, to engage with users, to enable
them to slice and dice the data, to view it from various angles and to find stories
worth telling: outliers, trends or even the obvious.
In 2006 Hans Rosling gave an inspiring talk at TED [Ros06] about social and eco-
nomic developments in the world over the past 50 years, which challenged the views
and perceptions of many listeners. Rosling had used extensive data analysis to reach
his conclusions. To visualise his talk, he and his team at Gapminder [Fou10b] had
developed animated bubble charts, a ka motion charts, see Figure 1.
Rosling’s presentation popularised the idea and use of interactive charts. One year
later the software behind Gapminder was bought by Google and integrated as motion
charts into their Google Charts API [Inc12b], formerly known as Google Visualisation
API.
In 2010 Sebasti´an P´erez Saaibi [Saa10] presented at the R/Rmetrics Workshop on
Computational Finance and Financial Engineering, the idea to use Google motion
charts to visualise R output with the R.rsp package [Ben12].
Inspired by those talks and the desire to use interactive data visualisation tools to
foster the dialogue between data analysts and others the authors of this vignette
started the development of the googleVis package [GdC14], [GdC11] in August
2010.
1.2 Google Chart Tools
The Google Charts API [Inc12b] allows users to create interactive charts as part of
Go ogle documents, spreadsheets and web pages. In this text we will focus on the
usage of the API as part of web pages.
The Google Public Data Explorer [Inc12d] provides a good example, demonstrating
the use of interactive charts and how they can help to analyse data. Please note,
that all of those charts are rendered by the browser.
The charting data can either be embedded into the html file or read dynamically.
The key to the Google Charts is that the data is structured in a DataTable [Inc12e],
and this is where the googleVis package helps, as it transforms R data frames
into JSON [JSO06] objects, using the RJSONIO package [Lan12], as the basis for a
DataTable.
As an example we shall look at the html-code of a motion chart from Google’s
4
Comentários a estes Manuais