Developing Data Products Course Project

Victoria O.
July 21, 2020

Introduction

This presentation is part of the Course Project for the Coursera Developing Data Products class. First, a Shiny application is created and deployed. Second, Rstudio Presenter is used to prepare a reproducible pitch presentation about the application.

The app developed for the first part of the assignment is available at: http://vickkiee.shinyapps.io/myff

Source code for ui.R and server.R files are available on the GitHub: https://github.com/vickkiee/dpp_4

Executive Summary

The relationship between manual or automatic transmission and miles per gallon (MPG) is reported using mtcars dataset to determine which transmission type produces a higher MPG. The relationship between a set of variables such as weight, transmission type, horsepower and number of cylinders and MPG (outcome) is explored by answering the following two questions:

  • Is an automatic or manual transmission better for MPG
  • Quantify the MPG difference between automatic and manual transmissions

mtcars dataset

Here is the summary of the 'mtcars' dataset:

               mpg cyl disp  hp drat    wt  qsec vs am gear carb
Mazda RX4     21.0   6  160 110 3.90 2.620 16.46  0  1    4    4
Mazda RX4 Wag 21.0   6  160 110 3.90 2.875 17.02  0  1    4    4
Datsun 710    22.8   4  108  93 3.85 2.320 18.61  1  1    4    1
[1] 32 11
      mpg        cyl         disp             hp             drat      
 Min.   :10.40   4:11   Min.   : 71.1   Min.   : 52.0   Min.   :2.760  
 1st Qu.:15.43   6: 7   1st Qu.:120.8   1st Qu.: 96.5   1st Qu.:3.080  
 Median :19.20   8:14   Median :196.3   Median :123.0   Median :3.695  
 Mean   :20.09          Mean   :230.7   Mean   :146.7   Mean   :3.597  
 3rd Qu.:22.80          3rd Qu.:326.0   3rd Qu.:180.0   3rd Qu.:3.920  
 Max.   :33.90          Max.   :472.0   Max.   :335.0   Max.   :4.930  
       wt             qsec       vs     am     gear   carb  
 Min.   :1.513   Min.   :14.50   0:18   0:19   3:15   1: 7  
 1st Qu.:2.581   1st Qu.:16.89   1:14   1:13   4:12   2:10  
 Median :3.325   Median :17.71                 5: 5   3: 3  
 Mean   :3.217   Mean   :17.85                        4:10  
 3rd Qu.:3.610   3rd Qu.:18.90                        6: 1  
 Max.   :5.424   Max.   :22.90                        8: 1  

Plot

Box plot that compares Automatic and Manual transmission MPG is shown. It can be seen that for manual transmission vehicles there is a significant increase in MPG when compared with automatic transmission vehicles.

plot of chunk unnamed-chunk-2