We have used the mtcars dataset, cleaned it up to create mtcarsClean and demonstrated the relationship between gas mileage and weight across different cylinder.
Below is what our data look like.
head(mtcarsClean, n = 3)
## mpg cyl disp hp drat wt qsec vs gear carb ## Mazda RX4 21.0 6 Cylinder 160 110 3.90 2.620 16.46 s-shaped 4 4 ## Mazda RX4 Wag 21.0 6 Cylinder 160 110 3.90 2.875 17.02 s-shaped 4 4 ## Datsun 710 22.8 4 Cylinder 108 93 3.85 2.320 18.61 v-shaped 4 1 ## transmission ## Mazda RX4 manual ## Mazda RX4 Wag manual ## Datsun 710 manual