This package will contain all algorithms used to calculate NEON Data products relating to biodiversity
Currently there are two algorithms implemented
- Hurlbert's PIE
- Individual based rarefaction
- Chao1 estimator
Depends
devtools
library(devtools)
install_github("NEONDiversity")
Matrix example
library(NEONDiversity)
data(work)
work_rare <- indiv_rare(as.matrix(work))
### Plot results
plot(x = unlist(lapply(work_rare, length)), unlist(lapply(work_rare, max)),
ylim = c(0, max(unlist(work_rare))), xlim = c(0, max(unlist(lapply(work_rare,
length)))), ylab = "Species", xlab = "Individuals")
for (i in 1:length(work_rare)) {
lines(work_rare[[i]])
}