The guys at RStudio have done a fantastic job with shiny. It is really easy to build web apps with R using shiny. With the help of Joe Cheng from RStudio we figured out a way to make googleVis work on shiny as well. This allows you to make use of the Google Charts Tools in your shiny app directly from R. What I present here are three initial examples which seem to work in most browsers. The third example even uses a neat trick to create an animated geo chart.
However, before we upload the next version of googleVis to CRAN we decided to present a preview of version 0.4.0 here, asking for feedback. It would not be fair on the guys behind CRAN to release something into the wild, only to be told by users within a few days that we missed something. Hence, you can get the new version of googleVis only from the download page of our project site for the time being.
You may have read the post on RStudio's blog that the shiny API changed slightly: the
reactiveTextfunctions have been renamed to
renderTextwith simplified input parameters. Thanks to Joe, there is now also a
renderGvisfunction as part of the googleVis package, which works in very much the same way as the other two.
To run the following examples you need shiny version 0.4.0 and googleVis version 0.4.0 or higher. Note that the charts below are not screen shots, but real apps hosted on RStudio's infrastructure.
Read more »