Contents
1 Introduction 4
1.1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 Google Chart Tools . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 The googleVis package 6
2.1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Using the googleVis package . . . . . . . . . . . . . . . . . . . . 8
2.3 Motion Chart Example . . . . . . . . . . . . . . . . . . . . . . . . 10
2.4 Displaying gvis objects locally . . . . . . . . . . . . . . . . . . . . 16
2.5 Setting default behaviour of print.gvis and plot.gvis . . . . . 17
2.6 Combining charts with gvisMerge . . . . . . . . . . . . . . . . . . 18
2.7 Setting options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.7.1 Chart Editor . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.7.2 Dealing with apostrophes in column names . . . . . . . . . 21
3 Embedding googleVis in web sites 22
3.1 Integrating gvis objects in existing sites . . . . . . . . . . . . . . . 22
3.2 Using googleVis output with WordPress . . . . . . . . . . . . . . 23
3.3 Using googleVis output with Google Sites, Blogger, etc. . . . . . . 24
3.4 Embedding googleVis in web sites dynamically . . . . . . . . . . . 25
3.4.1 Using googleVis with R.rsp . . . . . . . . . . . . . . . . 26
3.4.2 Using googleVis with RApache and brew . . . . . . . . . 26
3.4.3 Using googleVis with Rook . . . . . . . . . . . . . . . . 28
3.4.4 Using googleVis with shiny . . . . . . . . . . . . . . . . 30
4 Using googleVis with knitr 32
5 Using googleVis in presentations 34
6 Beyond R 35
6.1 Registering to catch events . . . . . . . . . . . . . . . . . . . . . . 35
2
Comentários a estes Manuais