library(tidyverse)library(ggplot2)airquality <- airqualityp3 <- airquality %>%ggplot(aes(Month, Temp, fill = Month)) +labs(x ="Monthly Temperatures", y ="Temperatures", title ="Side-by-Side Boxplot of Monthly Temperatures",caption ="New York State Department of Conservation and the National Weather Service") +geom_boxplot() +scale_fill_discrete(name ="Month", labels =c("May", "June","July", "August", "September"))p3
Plot 4
library(tidyverse)library(ggplot2)airquality <- airqualityp4 <- airquality %>%ggplot(aes(Month, Temp, fill = Month)) +labs(x ="Monthly Temperatures", y ="Temperatures", title ="Side-by-Side Boxplot of Monthly Temperatures",caption ="New York State Department of Conservation and the National Weather Service") +geom_boxplot()+scale_fill_grey(name ="Month", labels =c("May", "June","July", "August", "September"))p4
Plot 5
library(tidyverse)library(ggplot2)airquality <- airqualityp5 <- airquality %>%ggplot(aes(Month, Wind, fill = Month)) +labs(x ="Month", y ="Wind speed", title ="Boxplot of Monthly Wind Speeds", caption ="New York State Department of Conservation and the National Weather Service") +geom_boxplot()p5
For the fifth Plot I simply made a Boxplot of the wind speeds. The plot shows wind speeds over the five months, not much change is noted month to month. Originally I made a histogram using wind instead of temp, but I ended up deciding that the boxplot was a better vizualization. I also played around with geom_bar, geom_col and geom_line. With the Boxplot one can see small change month to month clearly and effectively.