R Studio Instructions:

R Studio Code:

Data Visualization:

Module Analysis:

For this assignment, I used the built-in mtcars dataset to explore relationships between miles per gallon (mpg) and several vehicle attributes, including displacement (disp), horsepower (hp), and weight (wt). After creating scatter plots with regression lines in ggplot2, I observed mostly negative relationships between mpg and all three variables. In particular, weight showed one of the strongest patterns, where vehicles with higher weight tend to have noticeably lower fuel efficiency. Horsepower and displacement showed similar downward trends, suggesting that as engine size and power increase, mpg generally decreases.

Using a facet grid layout made it much easier to compare these relationships side by side. Instead of overlaying all variables in a single plot, separating them into individual panels allowed the trends to be interpreted more clearly while still having the same visual structure. This aligns with the idea discussed in lecture that grid layouts improve comparison and reduce visual confusion.

Few’s design recommendations were also helpful for keeping the visualization clear and readable. By using a minimal theme, simple color choices, and clear axis labels, the focus stays on the relationships in the data rather than decorative elements. I think Few’s approach generally improves visual analytics because it prioritizes clarity and interpretation, although sometimes extremely minimal design can feel a bit plain. In this case, however, the simplicity helped emphasize the regression patterns.

Additionally, my DataCamp experience from my Data Mining class helped me feel more comfortable working with ggplot2 and interpreting relationships between variables. Having practiced building scatter plots and regression models previously made it easier to structure this visualization and understand what the regression lines were showing.

Posted in

Leave a Reply

Create your own website, free on WordPress.com.Create your own website.
Start free