Visualizing Distributions in the mtcars Dataset
Histogram of Miles per Gallon (mpg)
Reflection
For this assignment, I used the built-in mtcars dataset to explore the distribution of miles per gallon (mpg) across 32 car models. The histogram I created shows that most cars in the dataset achieve between 15 and 22 miles per gallon, while a smaller number reach over 30 mpg. This right-skewed distribution suggests that highly fuel-efficient cars were less common at the time the data was collected, which aligns with historical trends in vehicle design and fuel economy.
In designing my visualization, I followed Stephen Few’s principles for clear distribution displays by using aligned axes, minimal gridlines, and a simple color palette. The “skyblue” fill adds subtle visual appeal without distracting from the data itself. The axis labels and title make the chart easy to interpret at a glance. Following Nathan Yau’s approach, I used a histogram to highlight the shape and spread of the data rather than just summary statistics, which provides a more intuitive understanding of how mpg values vary among cars.
I agree with Few’s critique that many traditional charts can obscure the story within the data. In this case, a bar chart or average value would have hidden the variation within categories, while the histogram clearly reveals the clustering of mid-range fuel efficiency and the presence of a few high-efficiency outliers. Overall, this visualization effectively communicates how fuel economy differs across vehicles and demonstrates the importance of design simplicity in uncovering distribution patterns.

Comments
Post a Comment