Posts

Showing posts from February, 2024

Module #7 Assignment

Image
This code will create a boxplot of the mpg variable, grouped by the number of cylinders (cyl). The geom_boxplot() function from the ggplot2 package is used to create the boxplot. The labs() function is used to add labels to the x and y axes, and ggtitle() is used to add a title to the plot. Regarding Few’s recommendations, they are generally well-regarded in the field of data visualization. Using a grid to enhance comparisons between scatter plots can indeed be helpful. It allows the viewer to more easily compare the distributions of different variables or groups. However, like all recommendations, it may not be applicable in every situation. It’s always important to consider the specific context and goals of your visualization when deciding which techniques to use.

Module #6 Assignment

Image
 I do have some experience when it comes to data visualization in R that made this assignment work out much more smoothly than expected.  My R code for this assignment was the following: Running this code generates a bar plot that looks like the following: Both Few and Yau emphasize the importance of simplicity and clarity in data visualization. I feel my example does this perfectly as it captures the full range of information necessary in a way that is simple and clean. 

Module #5 Part to Whole and Ranking Analysis

Image
  This is the visualization I created using the provided dataset for module 5. Plot.ly has a number of different types of graphs to make visualizations with and present data in different forms. Knowing this and exploring all the different ones the website has to offer, I ultimately decided to keep things simple and opted to use a vertical bar graph as I felt it quickly and easily conveyed the information I wanted it to. 

Module #4 Assignment

Image
  This is my visualization using the 6 variables "Primary USA City", "Primary UZA Sq Miles", "Year", "Vehicle Revenue Miles", "Vehicle Revenue Hours", and "Ridership".