The Shiny package provides great user interactivity and another boost to its attractiveness has come with its integration with googleVis. Markus Gesman provides some background in a blog article with coded examples which he along with fellow googleVis creator, Diego de Castillo and lead Shiny developer Winson Chang have furnished
There are at least three significant advantages that appeal to me
- Pageable/Sortable Tables
- Zoomable/Draggable Maps
- Motion Charts
It is the last of these that I want to cover here which is a motion chart showing changes by game played in the league position for each English Premier league club, selectable for each of the past 20+ seasons
The Shiny App is made up of three files
- global.R – which loads the libraries, and sets up the data
- ui.R – a simple page offering a season selection and displaying the chart
- server.R – basically one function which takes the season input to subset the data, some initial conditions (which the user can then vary) and calls the motion chart
- Shiny Server – Earthshattering News As you probably know, I am one of the strongest proponents of the Shiny package for developing interactive web applications Amongst the latest news from RStudio is that what was...
- Charting Wikipedia interest in GOP candidates with googleVis I recently posted an article on how to collate Wikipedia page views As there is a time component to this, it seemed appropriate to use the googleVis Package to visualize...
- EPL Transfer Fees With the August window now closed, I thought it would be interesting to take a brief historical perspective of transfers The data excludes any free transfers or those where the...