In this ppt, we will be calculating the relationship between a car’s weight and the fuel efficiency using the built-in mtcars dataset as we used in class .
- Objective: To visualize how weight affects MPG.
- Tool: We will use plotting libraries as asked in the requirements:
ggplot2andplotly. - Variables:
- \(Y\): Miles per Gallon (mpg)
- \(X\): Weight (1000 lbs)