Testing for differences between sites using three different sampling designs
Author
Alex Koiter
Load Libraries
In [1]:
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.4
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.0 ✔ tibble 3.2.1
✔ lubridate 1.9.2 ✔ tidyr 1.3.1
✔ purrr 1.0.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(scales)
Attaching package: 'scales'
The following object is masked from 'package:purrr':
discard
The following object is masked from 'package:readr':
col_factor
library(viridis)
Loading required package: viridisLite
Attaching package: 'viridis'
The following object is masked from 'package:scales':
viridis_pal
library(FSA)
## FSA v0.9.5. See citation('FSA') if used in publication.
## Run fishR() for related website and fishR('IFAR') for related book.
# A tibble: 30 × 4
site Fingerprint p_value type
<chr> <chr> <dbl> <chr>
1 Agriculture X 0.0526 colour
2 Agriculture Y 0.0567 colour
3 Agriculture Z 0.530 colour
4 Agriculture x 0.0000370 colour
5 Agriculture y 0.00000552 colour
6 Agriculture u 0.0000173 colour
7 Agriculture v 0.00000769 colour
8 Agriculture L 0.0567 colour
9 Agriculture a 0.0000362 colour
10 Agriculture b 0.0000104 colour
# ℹ 20 more rows
# A tibble: 88 × 4
site Fingerprint p_value type
<chr> <chr> <dbl> <chr>
1 Forest Ag 0.00218 geochemistry
2 Forest Al 0.000205 geochemistry
3 Forest As 0.00640 geochemistry
4 Forest B 0.00786 geochemistry
5 Forest Ba 0.00558 geochemistry
6 Forest Be 0.000968 geochemistry
7 Forest Bi 0.000413 geochemistry
8 Forest Ca 0.000155 geochemistry
9 Forest Cd 0.000229 geochemistry
10 Forest Ce 0.0661 geochemistry
# ℹ 78 more rows
Results for the pair-wise Dunn’s post-hoc test to determine differences in fingerprint properties between the three sampling designs for each site. Dashed line represents an α value of 0.05. Fingerprints that showed no significant differences (p value > 0.05) following the Kruskal Wallis test are not included.