October 25, 2016
Why use Shiny?
- Using the leaflet package directly from our R console does not give the user an interactive experience
- If we use reactive functions with our data, with Shiny's radio button - bootstrap UI, the user will be able to pick any office address and watch the app quickly change accordingly
Created by Brian Pei - October 23, 2016
Data for markdown examples and shiny app gathered from www.spotify.com/offices
Packages used for application: Leaflet, Shiny, Shinythemes
Css template for application downloaded from www.bootswatch.com
Visualization (leaflet)
Below is an example of how leaflet() works on our data set without being integrated with R Shiny.
Web Application (Shiny and leaflet)
Below is a finished product using the same office data set integrated with R Shiny
Comparison and use case
- Using leaflet with Shiny provides the ability to easily integrate user interactivity via the radio buttons (tied reactively to our office data set), custom bootstrap css, and dynamic pop-ups
- With the server.r and ui.r code used in this example, any company can easily add in their logo.jpg, office latitudes and longitudes, and color scheme and create a web application for their company's website that visualizes their locations nicely and dynamically
Created by: Brian Pei
Updated on: 10/25/2016
Class: Developing Data Products: Coursera, Johns Hopkins