Module # 6 Visual Differences & Deviation Analysis via R

 

Visual Differences and Deviation Analysis via R

1) This week I make a basic graphic in R. I have done a lot of graphics in R in the past. Tons of them. The only difference is that this time, I know exactly what to look for when constructing them to create the most effective visual for the data that I am presenting. This understanding of mine has been enhanced by this weeks lesson. 

2) What I am going to be focusing on with this graphic is that it is clear, has a lie factor of 1, no chart junk, and I used the best graphic for the information I want to convey. To do this I am going to use something very simple and readily available to me, aka something that is free; the mtcars data base in RStudio. 

3) I am going to make bar chart displaying the number of cars that have different types of cylinders in their engines in the mtcars dataset. Although this graphic won't be very in-depth, it sheds vital light on a database that comes with RStudio, and a dataset that most students use often when understanding how to filter, manipulate and pull data. 

4) Above is the console and code used to create the following chart. You are free to use this code as well when practicing with mtcars in your free time. 



5) The graphic above has a clear and detailed title, a lie factor that is equal to 1, no chart junk and I believe is the best graph that can be used to display this data. We get a clear picture comparing the number of cars that have which cylinders in this dataset and can see that they are not even, eight cylinders have the most and six cylinders have the least. Despite most of the cars on the road having only 4 cylinders and very few having 8, we can see that there was some deviation from the norm in the creation of the mtcars dataset. 

6) If you would like to view this code on my GitHub you may do so here.

7) The last thing we have to do is to think about how this fits into Few's and Yau's discussions on how to conduct basic visualization based on simple descriptive analysis. Looking at the graph, it aligns well with Stephen Few’s and Nathan Yau’s visualization principles. Using a clear bar chart, appropriate for showing car counts by cylinder, and the labels and title provide necessary context, fitting Few’s focus on clarity and simplicity. The minimal design and scant use of color reflect on Yau’s sense of aesthetics and function. 

Comments