Module 6 assignment
For this assignment, I used the built-in dataset mtcars in Rstudio to explore differences in fuel efficiency across the number of engine cylinders. I created a boxplot to compare the distribution of MPG values by cylinder category (4, 6, and 8 cylinders).
The boxplot clearly reveals differences in fuel efficiency between cars with different cylinder counts. Cars with 4 cylinders show the highest mpg, while 8-cylinder cars have lower values. This visual pattern shows the principle of spotting differences, as the distinct box heights and median lines make it easy to see the variation across groups.
From a deviation analysis perspective, the visualization shows how cars with 6 and 8 cylinders deviate below the general mean mpg across the dataset. This aligns well with the ideas discussed in the class material that talks about clarity and minimalism in displaying differences.
One challenge I faced was adjusting the boxplot labels and colors to make the visualization more clear without overcrowding it. Understanding which type of chart best reveals differences also required some trial and error. I initially tried a bar plot but found that the boxplot did better with variability and median differences.

Comments
Post a Comment