Create your first basic graphic in R as I outlined in the video and power pointDownload power point.
Post the visual on your blog and discuss if your basic visualization in R fit or maybe not fit into Few's and Yau's discussions on how to conduct basic visualization based on simple descriptive analysis.
When selecting a chart, you have to ask yourself if you're using the right chart depending on what you are trying to show such as distribution, trends, comparisons, or relationships between values.
According to Few, Deviation analysis doesn't require intricate visualizations. The two best graphs for displaying deviation are bar and line graphs. Deviation analysis is the measurement of the difference between any one number in a set and the mean of the set.
According to Yau, the use of multivariate analysis to spot the differences between variables is one of the most important assets of visual analytics. Yau believes it is important to find those differences and highlight them with the use of visualization.
The first graph I made was a pie chart.
In the mtcars dataset, the number of cylinders is either 4, 6, and 8. This pie chart provides a simple visualization of the amount of cylinders. There are 11 Four cylinders, 7 Six cylinders, and 14 Eight cylinders. We see that in the pie chart that Eight cylinders is the largest. According to Yau and Few, this visualization would not fit into their criteria.
For my next graph, I wanted to add on to this by making sure I fall under Yau and Few guidelines. (Barplot)
This graph shows a relationship between the number of cylinders and Average MPG. Using the tapply function, which allows me to apply a calculation on a specific group of data, I take the mean of mpg for the respective number of cylinders. This is what that looks like below. I then plot a simple barplot to demonstrate this relationship. From this we are able to see that the fewer the number of cylinders, the greater the mpg will be. If there are more cylinders in the vehicle, the average mpg will be smaller. I believe this graph fits into Few and Yau's criteria because it is a simple graph that is easy to understand that demonstrates a relationship between to variables. It also falls under Few's recommendation to use either bar or line graphs.
Comments
Post a Comment