Predicting 1920s Car Stopping Distances

Introduction to my Shiny app

Created by Jude Calvillo, CMO at Sovereign Market
© 2015 - All Rights Reserved

Overview

Thanks for reviewing my Shiny app!

As the title earlier suggested, my Shiny app basically predicts a 1920s car stopping distance (in feet) based on the car speed (in MPH) a user selects.

How it Works

  • The app builds a basic linear model (LM) from the small 1920s 'cars' dataset, which includes records of car speed and stopping distance.
  • In real-time (i.e. reactive), the app then takes a user's selected speed to predict a 1920s stopping distance based on the linear model.
  • In real-time (i.e. reactive), the app presents the predicted value, along with a helpful plot of the original data (scatter plot), the linear model, and a vertical line at the selected speed to help the user locate their predicted value.

How to Use It

  1. Visit my Shiny app.
  2. Drag the left-hand slider to some speed value between 5 and 100 MPH.
  3. Watch the predicted stopping distance and plot change.
    • A preview prediction, at 50 MPH, is presented below.
## [1] "Predicted stopping distance: 179.04 feet"

plot of chunk unnamed-chunk-1

Thank You