Module 9. Assignment
Horsepower, Cylinders, and Gas Sapper Cars The mtcars collection is built into R, and I used it for this task. This dataset was chosen because it is easy to understand and use. This makes it great for learning multivariate graphics without getting lost in complicated data. "How do horsepower, cylinders, and transmission type all work together to affect a car's gas mileage?" What the visualization taught me My scatterplot shows four different factors, and the trends were clear right away: Most importantly, there is a strong, negative link between horsepower and gas mileage. The miles per gallon (y-axis) goes down as the horsepower (x-axis) goes up. Cylinder Groups: The cars can be easily divided into three groups based on their color schemes. The red 4-cylinder cars have low horsepower and high mpg, while the blue 8-cylinder cars have high horsepower and low mpg. The cars with six cylinders are in the middle. Transmission Matters: The way the shapes are put to...