For this week, we were tasked with creating a simple data visualization using R. I decided to work with the mtcars dataset which comes as a prebuilt dataset in R and lists various cars from the 1974 Motor Trends US magazine.
There are many variables to look at but I wanted to examine all the average miles per gallon (mpg) for each of the cars listed.
To do so, I used ggplot2 and came up with the following:
(Click on the image to make it bigger)
Reflecting on Few and Yau's discussions on conducting basic visualizations, my visualization somewhat follows the various design principles they introduced. Such as, selecting the right type of graph that best visualizes the data in a meaningful way. As Few mentions in page 37 of the textbook, not all graphs can effectively show the data. With this many car names, a pie chart would not be suitable in order to tell the differences between mpg.
If I were to revise this visualization, I would attempt to create space between each bar to better make out which car belongs to which bar. It is a bit condensed and spacing is needed. Next, the color scheme is pretty but can get quite hard to see when it comes to reading colored bars between the colors orange, green, blue, and pink.
~ Katie