Simple Shiny app to interactively explore the ggplot2::mpg dataset.
Files - app.R: single-file Shiny application
Requirements - R (>= 4.0) - Packages: shiny, ggplot2, dplyr, plotly, DT, shinythemes, readr
Run
- Install required packages if needed, e.g.
install.packages(c("shiny","ggplot2","dplyr","plotly","DT","shinythemes","readr"))- From R console or RStudio, run:
shiny::runApp(".")or open app.R in RStudio and click "Run App".
Notes - The app allows filtering by manufacturer, model, year, cylinders and transmission. - Choose x/y variables, color, facet and toggle smoothing. Export filtered CSV or PNG of the plot.