Module # 9 assignment
For this assignment, I used the mtcars dataset, which includes data on various car models and their performance characteristics such as miles per gallon (mpg), horsepower (hp), weight (wt), and the number of cylinders (cyl). I chose this dataset because it provides a good mix of continuous and categorical variables, making it ideal for demonstrating relationships across multiple dimensions. I created a scatter plot using ggplot2 in R, plotting horsepower (hp) on the x-axis and miles per gallon (mpg) on the y-axis. To incorporate additional variables, I used color to represent the number of cylinders ( cyl ), point size to indicate car weight ( wt ), and faceting to separate cars by the number of gears ( gear ). This design allows viewers to quickly see how fuel efficiency decreases as horsepower and weight increase, and how this relationship varies across cars with different numbers of gears and cylinders. This multivariate visualization effectively highlights the trade-o...