An analysis exploring the impacts of soil treatment on sugar maple growth for trees in acid rain effected watersheds.
This analysis explores differences in growth patterns between sugar maples in acid-rain affected watersheds that have received calcium addition treatment, and those that have not. The data was collected in both 2003 and 2004 by researchers at Hubbard Brooks LTER site in New Hampshire.
This analysis presents summary statistics for maple growth rates between the two plot types and employs a two-sample t-test to explore if any differences in growth rates are significant.
# Create a subset of the data for only stem characteristics. `group_by` year and watershed.
stems <- maples %>%
select(year, watershed, stem_length, stem_dry_mass)
stems_summary <- stems %>%
group_by(watershed, year) %>%
summarize(sample_size = n(),
mean_length = mean(stem_length),
sd_length = sd(stem_length),
mean_mass = mean(stem_dry_mass),
sd_mass = sd(stem_dry_mass))
stems_summary %>%
kable(col.names = c("Watershed",
"Year",
"Sample Size",
"Stem Length Mean(mm)",
"Stem Length Standard Deviation (mm)",
"Stem Mass Mean (g)",
"Stem Mass Standard Deviation(g)"), digits = 2) %>%
kable_styling(bootstrap_options = "striped", full_width = FALSE)
Watershed | Year | Sample Size | Stem Length Mean(mm) | Stem Length Standard Deviation (mm) | Stem Mass Mean (g) | Stem Mass Standard Deviation(g) |
---|---|---|---|---|---|---|
Reference | 2003 | 120 | 80.98 | 13.94 | 0.02 | 0.01 |
Reference | 2004 | 59 | 85.88 | 15.59 | 0.07 | 0.02 |
W1 | 2003 | 120 | 87.89 | 14.34 | 0.03 | 0.01 |
W1 | 2004 | 60 | 97.52 | 13.83 | 0.09 | 0.02 |
# Filter for only 2003 data.
stems_y1 <- stems %>%
filter(year == "2003")
ggplot(data = stems_y1, aes(x = watershed, y = stem_dry_mass)) +
geom_beeswarm(aes(color = watershed),
dodge.width = 1, cex = 2, show.legend = FALSE) +
geom_boxplot(fill = NA, width = 0.2, outlier.color = NA) +
stat_summary(fun.y = "mean",
color = "skyblue4",
shape = 19) +
scale_color_manual(values = c("darkgoldenrod1", "darkorange2")) +
theme_bw() +
labs(x = "Watershed", y = "Strem Dry Mass (g)")
# Run diagnostic plots to determine whether a t-test is appropriate.
ggplot(data = stems_y1, aes(x = stem_dry_mass)) +
geom_histogram(aes(fill = watershed)) +
facet_wrap(~ watershed) +
labs(x = "Stem Mass (g)", y = "Count")
ggplot(data = stems_y1, aes(sample = stem_dry_mass)) +
geom_qq(aes(color = watershed)) +
facet_wrap(~ watershed)
There is nothing in these visualizations to show that the data is not normally distributed. All of the visualizations show the presence of a few outlier values, but the majority of observations are clustered more closely together around the mean. Because of this, a t-test is appropriate to explore the difference in mean stem length between the treatment and control sites.
# Run the t-test and Cohen's D
stems_ref <- stems_y1 %>%
filter(watershed == "Reference") %>%
pull(stem_dry_mass)
stems_w1 <- stems_y1 %>%
filter(watershed == "W1") %>%
pull(stem_dry_mass)
stems_t <- t.test(stems_ref, stems_w1)
stems_cohen <- cohen.d(stems_ref, stems_w1)
mean_diff <- stems_summary[3, "mean_mass"] - stems_summary[1, "mean_mass"]
mean_percent <- mean_diff / ((stems_summary[3, "mean_mass"] + stems_summary[1, "mean_mass"])/2)
The mean mass of stems on maples in the treatment watershed (0.033 \(\pm\) 0.011 grams, n = 59; mean \(\pm\) 1 standard deviation) is larger than that for reference watershed maples (0.023 \(\pm\) 0.007 grams, n = 120; mean \(\pm\) 1 standard deviation).
This gives an absolute difference in means between the treatment and reference watershed maples of 0.01 grams (or a 37 percent difference). The difference in mean stem mass between the treatment and reference maples included in this sample is significant (two-sample t-test: t(198= -9.18, p < .001. The effect size is large (Cohen’s d = -1.19).
Overall, this does not prove that calcium treatment for watersheds impacted by acid rain increases the growth rate of sugar maples. It only proves that the difference in growth rates between the reference and treatment plots is significant. It is possible that other variables besides the treatment could contribute to this difference.
Sugar maples data source: Juice, S. and T. Fahey. 2019. Health and mycorrhizal colonization response of sugar maple (Acer saccharum) seedlings to calcium addition in Watershed 1 at the Hubbard Brook Experimental Forest ver 3. Environmental Data Initiative. https://doi.org/10.6073/pasta/0ade53ede9a916a36962799b2407097e