knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
These data represent baseline soil bulk density and total soil carbon and nitrogen concentrations for the three grazing treatments at Harvard Farm: hay (no grazing), rotational grazing, and intensive grazing. These samples were collected at the beginning of the study, so any differences across plots or treatments are due to inherent soil variability at the site rather than the treatments themselves.
library(bonanza) library(tidyverse) soil <- bonanza::hf_soil soil$plot.num <- as.factor(soil$plot.num)
These data were collected to establish the starting conditions with which to compare potential treatment effects at later sampling dates. We can then produce graphs to visualize the levels.
ggplot(soil, aes(fill=depth, y=n.per, x=plot.num)) + geom_bar(position="dodge", stat="identity") + labs(y = "Percentage of Total Organic Nitrogen", x = "Plot Number") ggplot(soil, aes(fill=depth, y=c.per, x=plot.num)) + geom_bar(position="dodge", stat="identity") + labs(y = "Percentage of Total Organic Carbon", x = "Plot Number")
The grouped bar plots reveal that the concentration of nitrogen and carbon in the soil decreases as the depth increases, which is in line with the conditions necessary for the experiments.
Frey, S. 2020. Soil Carbon and Nitrogen at the Harvard Farm at Harvard Forest since 2015 ver 1. Environmental Data Initiative. https://doi.org/10.6073/pasta/091fd0683fe27b1dcd17fddfce91f2dc (Accessed 2021-03-08).
See "hf_soil.R".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.