Mikhail Chepkiy
December 31, 2017
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:
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.
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))
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
The Shiny app is hosted here:
https://mchepkiy.shinyapps.io/C9W4App/
The presentation is hosted on RPubs: