Lab 04 - Garlic Mustard

Author

Anthony Le, Jenny Nguyen, Tanisha Mandlecha

LAP REPORT

Code
GarlicMustardData <- read.csv("GarlicMustardData.csv")

NorthAm <- GarlicMustardData |>
  filter(Region == "NorthAm")

Europe <- GarlicMustardData |> 
  filter(Region == "Europe")
Code
ggplot(GarlicMustardData, aes(TotalDens, color = Region)) +
  geom_histogram() + facet_grid(~Region) + 
  labs(x = "Total Density (per squared meter)", 
       y = "Count", 
       title = "Total Density of Garlic Mustard in Europe and North America")

Code
ggplot(GarlicMustardData, aes(Region,TotalDens, color = Region)) +
  geom_boxplot() + 
  labs(y = "Total Density (per squared meter)", 
       x = "Region", 
       title = "Total Density of Garlic Mustard in Europe and North America")

Code
ggplot(NorthAm, aes(TotalDens,Altitude)) +
  geom_point() + 
  geom_smooth(method = "loess") + 
  labs(x = "Total Density (per squared meter)", 
       y = "Altitude", 
       title = "Total Density of Garlic Mustard across Different Altitudes in North America")

Code
ggplot(Europe, aes(TotalDens,Altitude)) +
  geom_point() + 
  geom_smooth(method = "loess") + 
  labs(x = "Total Density (per squared meter)", 
       y = "Altitude", 
       title = "Total Density of Garlic Mustard across Different Altitudes in Europe")

Code
ggplot(NorthAm, aes(TotalDens,bio7)) +
  geom_point() + 
  geom_smooth(method = "loess") + 
  labs(x = "Total Density (per squared meter)", 
       y = "Temperature Annual Range", 
       title = "Total Density of Garlic Mustard in North America")

Code
ggplot(Europe, aes(bio7,TotalDens)) +
  geom_point() + 
  geom_smooth(method = "loess") + 
  labs(x = "Total Density (per squared meter)", 
       y = "Temperature Annual Range", 
       title = "Total Density of Garlic Mustard in Europe")