Shiny Application and Reproducible Pitch

Steve Dubois
December 12, 2017

Overview/Task

The Shiny Galton Predictor is a Shiny Web Application (app) that allows the user to predict an adult child's height based on the height of the child's parents.

The app takes from the user inputs of the heights of both parents. And, by way of linear regression, the app will predict the height of the children.

The application can be accessed at: https://myfapp.shinyapps.io/galton/. The ui.R (user interface) and the server.R files can be found at: https://github.com/steveduboi/steveduboi3.github.io.

Summary of Galton Family Data

library(UsingR)
data(galton)
summary(galton)
     child           parent     
 Min.   :61.70   Min.   :64.00  
 1st Qu.:66.20   1st Qu.:67.50  
 Median :68.20   Median :68.50  
 Mean   :68.09   Mean   :68.31  
 3rd Qu.:70.20   3rd Qu.:69.50  
 Max.   :73.70   Max.   :73.00  

Plot containg regression line.

library(ggplot2)
ggplot(galton ,aes(parent,child))+geom_point()+geom_smooth(method = "lm")

plot of chunk unnamed-chunk-2 We can see from both the plot summary table that there is a positive correlation between child heights and the parent heights.

THANK YOU.