First Shiny App with Slidify

Emmanuel Okyere Darko
11/4/2021

Summary

This Slide contains a splines prediction on a mtcars data. Two models are used to predict Horsepower (hp) using mpg as predictor. thus a simple linear regression and splines.

The Shiny App shows the interactive difference between the two models and also takes a number from the user and predicts it

head(mtcars,3)
               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

How to use the App

  • Click on the link to the shiny.oi server
  • Use the first tab to visualize the predictions and second tab for numeric predictions
  • The sidebar panel is for the interactive use

Shiny web ui

Please click this to use Shiny interactively shiny.io

shiny app on github

please click for ui and server codes github link