An Interactive Shiny Application
- Author: Ced
- Date: August 20, 2024
2024-08-20
Welcome to the MTCars Data Explorer! This Shiny app allows you to:
Explore how different variables relate to one another and gain insights into the MTCars dataset.
Here is an example of how the app visualizes the relationship between Miles Per Gallon (MPG) and Horsepower (HP), colored by the number of cylinders:
## `geom_smooth()` using formula = 'y ~ x'
The Shiny app allows users to choose between different smooth lines:
Linear Model:
fit_linear <- lm(hp ~ mpg, data = mtcars)
Quadratic Model:
fit_quadratic <- lm(hp ~ poly(mpg, 2), data = mtcars)