1 Set up

1.1 1) Load packages

1.2 2) Import data

1.3 3) Data Wrangling

1.4 4) Theme James Bar

1.5 5) Theme James Correlation

2 Methods Comparison

2.1 Data Manipulation

2.2 20mwd and 5mwd Correlation graphs

use soils data frame and location_a and horizon_a

### Correlation plots for group depths

2.3 20mwd and NRCS Correlation graphs

use soils_b data frame and location_b and horizon_b

2.3.1 Correlation plots for group depths

2.4 NRCS and 5mwd Correlation graphs

use soils data frame and location_a and horizon_a

2.4.1 Correlation plots for group depths

2.5 MWD Bland-Altman plots

## Warning: package 'BlandAltmanLeh' was built under R version 4.0.4

## Warning in plot.window(...): "na.rm" is not a graphical parameter
## Warning in plot.xy(xy, type, ...): "na.rm" is not a graphical parameter
## Warning in axis(side = side, at = at, labels = labels, ...): "na.rm" is not a
## graphical parameter

## Warning in axis(side = side, at = at, labels = labels, ...): "na.rm" is not a
## graphical parameter
## Warning in box(...): "na.rm" is not a graphical parameter
## Warning in title(...): "na.rm" is not a graphical parameter

## NULL

## NULL
## 
## Call:
## lm(formula = x5mwd ~ x20mwd, data = soils)
## 
## Residuals:
##      Min       1Q   Median       3Q      Max 
## -1.80182 -0.29896 -0.05003  0.25248  1.69542 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)    
## (Intercept)  0.47598    0.08690   5.477 1.97e-07 ***
## x20mwd       0.77398    0.07955   9.730  < 2e-16 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.5386 on 139 degrees of freedom
## Multiple R-squared:  0.4051, Adjusted R-squared:  0.4009 
## F-statistic: 94.67 on 1 and 139 DF,  p-value: < 2.2e-16

2.5.1 Correlation plots for group depths