🔒

R Scripts — Functional Diversity

Enter the password to access this page.

🌿

Functional Diversity

TPD estimation, functional richness and overlap

make.TPD.2D.high.def(targetGroupName, PCAImpute, alphaUse=0.95, ...)
High-resolution 2D TPD (Trait Probability Density) estimation for a taxonomic group.
make.TPD.2D.low.def(targetGroupName, PCAImpute, alphaUse=0.95, ...)
Low-resolution 2D TPD estimation — faster, suited for large datasets.
make.TPDLarge(targetGroupName, PCAImpute, alphaUse=0.95, TPDsMean_large, ...)
TPD computation for very large assemblages using a pre-computed reference TPD.
TPDRichness(TPDc=NULL, TPDs=NULL)
Compute functional richness (FRIC) from community or species TPD objects.
imageTPD(x, thresholdPlot=0.99)
Plot a TPD object as a filled image at a given probability threshold.
overlapF(x, y)
Functional overlap between two TPD distributions (Bhattacharyya coefficient).
percentileTPD(x)
Percentile-based summary statistics of a TPD probability distribution.
quantileTPD(x, thresholdPlot=0.99)
Extract contour lines at given probability quantiles from a 2D TPD.
MAE_TPD(x, y)
Mean absolute error between two TPD probability distributions.
compute_FRic()
Functional Richness via convex hull (FD::dbFD)
null_model_FD()
SES and p-value against species-shuffling null model