Shiny Application and Reproducible Pitch

Mohamed Chenini
2018-01-17

Overview

This presentation is a project which is part of the Coursera Data Science Specialization course: Developing Data Products.

The project consists of the following:

  • A Shiny Application.
  • A presentation using the Rstudio Presenter which you are playing now.
  • A slide with R code

Shiny Application

The Shiny application is composed by two R files

  • ui.R that control the USER interface

  • server.R where all computation (statistical for instance) is done.

The R code is saved in Github at this link ShinyApp

How the Application works

This Shiny application is a “movies explorer”.

On the left panel from the drop down menu titled “Which genre” you can select a movie genre (category) for instance “Action”, then from the bottom drop down menu titled “Pick a movie”, you select a movie.

There is a button named “Redraw graph” which will draw, on the right panel under the “Budgets overtime” tab, a curve representing the expenses over a time range which can be adjusted on the left panel from the “Year” slider

The right panel also display another tab called “Movie picker” which gives information about a specific movie.

The application can be accessed on the shinyapps.io website at Movie Picker

Just try it and you will gain more insight on how it works.

Slide with R code

data(mtcars)
mtcars$vs <- as.factor(mtcars$vs)
mtcars$am <- as.factor(mtcars$am)
boxplot(mpg ~ am, data = mtcars,
         col  = c("orange", "blue"),
         xlab = "Transmission",
         ylab = "Miles per Gallon",
         main = "MPG by Transmission Type",
         names= c("automatic","manual"),
         horizontal= T)

plot of chunk unnamed-chunk-1