C9W4 Presentation - Shiny App pitch desk

Mikhail Chepkiy
December 31, 2017

1. Overview of the app

This presentation contains basic description of Shiny app created for “Developing data products” course of “Data Science” specialization.

While this app is based on standard Shiny sample, it allows for the:

  • selection of dataset and field to be plotted
  • change of histogram color
  • dynamic update of the headers

2. How to use the app?

Choose the desired dataset from the list and then you can control the colors/density plot output as well as the number of bins to be used.

Plot header is also updated based on whether the density plot is selected to be shown or not.

3. Solutions used in the app - string to variable name

The app features the following construction to get the name of the dataset from ui.R as a string and use it as a variable name in server.R:

x <- eval(parse(text = input$dataset))

4. Dataset selection

The dataset should be selected using subsetted syntax: “dataset”$“column”. I got columns usin standard R features. Potentially dataset name and column name can be two separate selectors but they should be linked then to display only the relevant set of columns for each list.

summary(faithful)
   eruptions        waiting    
 Min.   :1.600   Min.   :43.0  
 1st Qu.:2.163   1st Qu.:58.0  
 Median :4.000   Median :76.0  
 Mean   :3.488   Mean   :70.9  
 3rd Qu.:4.454   3rd Qu.:82.0  
 Max.   :5.100   Max.   :96.0  

5. Links

The Shiny app is hosted here:

https://mchepkiy.shinyapps.io/C9W4App/

The presentation is hosted on RPubs:

http://rpubs.com/mchepkiy/C9W4