Motor Vehicle Data Visualization Application

Jordan K

Data Products - Johns Hopkins Data Science Specialization on Coursera

Introduction

  • There are many relationships between the variables that describe a motor vehicle, and they can all have effects on fuel efficiency
  • Wanted a tool that allows the user to direct their own inquiry about these relationships
  • Data from Statistical Learning with applications in R book companion package library(ISLR) ; data(Auto)
  • Many ways to visually inspect the data

Method

  • Used rCharts and ShinyApp's interactive graphing capabilites
  • User provides variables of interest and app creates custom visualization
  • Sample Plots on the Following Slides

Sample Plot 1

plot of chunk unnamed-chunk-1

Sample Plot 2

ggplot(auto, aes(Year, Weight, color = Origin, group = Origin)) +
     geom_point() + geom_smooth(method = lm, se = FALSE, lwd = 1.25) + 
     ggtitle("Sample App Chart 2") +
      theme(plot.title = element_text(size=20,lineheight=.8, 
                                               vjust=2,family="Calibri"))

plot of chunk unnamed-chunk-2

Next Steps

  • Application could be significantly further developed for more advanced and more customizable graphing capabilities.
  • Could add a section that predicts mpg based on various parameters entered by the user
  • Thanks and hope you enjoyed, with this app, you can be cruisin' soon!