Code
GarlicMustardData <- read.csv("GarlicMustardData.csv")
NorthAm <- GarlicMustardData |>
filter(Region == "NorthAm")
Europe <- GarlicMustardData |>
filter(Region == "Europe")GarlicMustardData <- read.csv("GarlicMustardData.csv")
NorthAm <- GarlicMustardData |>
filter(Region == "NorthAm")
Europe <- GarlicMustardData |>
filter(Region == "Europe")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")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")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")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")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")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")