The goal of this assignment was to illustrate data graphically within R. I decided two routes for this; one as demonstrated within the module and an alternative that uses the ggplot2 package. My first visualization was a histogram containing a comparative normal distribution curve.
These lines of code produced the following output:Secondly, I wanted to use ggplot since it's relevant to my other coursework and wanted to apply it outside of a single class. I used these parameters and instructions to create a plot that compared the vehicle displacement (x) against that of its weight (y). I chose the shape and colors based off of nothing besides which of the options and sizes I felt were appropriate and appealing to me. The result is as such:
Based on this graphic, it is evident that a strong, positive correlation is evident. I consider these two designs to be in-line with the ideas posited by Few and Yau. The principles of purpose, execution, and effect are intact and can be verified by recognizing the attributes of the graphics themselves.
No comments:
Post a Comment