Sampling of soil moisture was taken for 120 different plots experiencing either drought conditions or ambient soil conditions equating to sixty measurements of both conditions. The mean and variance were defined using the raw data provided i nthis dataset
library(ggplot2)
nName<- c("Ambient","Drought")
nSize <- c(30,30)
nMean <- c(0.103697, 0.03247) #Determined from soil dataset.
nSD<- c(.1565, 0.000656)
ID <- 1:(sum(nSize))
SoilMoisture <- c(rnorm(n=nSize[1], mean=nMean[1],sd=nSD[1]),
rnorm(n=nSize[1], mean=nMean[2], sd=nSD[2]))
TGroup <- c(rep(nName[1], 60), rep(nName[2], 60))
ANOdata <-data.frame(ID,TGroup, SoilMoisture)
Following this, an ANOVA was run to determine the significanct difference between the two averages. It was determined that there was a statistically significant difference between the moisture contents of the two soil conditions (p=5.538291x10^-71).
## TGroup SoilMoisture
## 1 Ambient 0.07777664
## 2 Drought 0.07777664
## $Fval
## F value1
## 6.686842e-31
##
## $probF
## Pr(>F)1
## 1
A histogram was chosen to illustrate the data and as seen, there is an incredible difference in soil moisture between the drought conditions and ambient conditions.