Module # 11 assignment

For this assignment, I will be recreating a dot-dash plot from Dr. Piwek using ggplot2 in RStudio. To start, I have to install and run packages ggplot2 and ggthemes:

Then, using R’s built in dataset mtcars, I can create a dot – dash plot to visualize how cars MPG is effected by the cars weight. 

From this graph, we can see a general trend: as cars weight increases, their MPG decreases. The dot-dash plot helps to see patterns and the inverse relationship between miles per gallon and car weight. Additionally, using ggplot2 made the coding process very simple, and creates an easy to understand, presentable visualization. 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *