Projects
Teaching
Data
R scripts
My blog
🔒
R Scripts — Functional Diversity
Enter the password to access this page.
OK
←
Back to R Scripts
🌿
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.
Open ↗
make.TPD.2D.low.def(targetGroupName, PCAImpute, alphaUse=0.95, ...)
Low-resolution 2D TPD estimation — faster, suited for large datasets.
Open ↗
make.TPDLarge(targetGroupName, PCAImpute, alphaUse=0.95, TPDsMean_large, ...)
TPD computation for very large assemblages using a pre-computed reference TPD.
Open ↗
TPDRichness(TPDc=NULL, TPDs=NULL)
Compute functional richness (FRIC) from community or species TPD objects.
Open ↗
imageTPD(x, thresholdPlot=0.99)
Plot a TPD object as a filled image at a given probability threshold.
Open ↗
overlapF(x, y)
Functional overlap between two TPD distributions (Bhattacharyya coefficient).
Open ↗
percentileTPD(x)
Percentile-based summary statistics of a TPD probability distribution.
Open ↗
quantileTPD(x, thresholdPlot=0.99)
Extract contour lines at given probability quantiles from a 2D TPD.
Open ↗
MAE_TPD(x, y)
Mean absolute error between two TPD probability distributions.
Open ↗
compute_FRic()
Functional Richness via convex hull (FD::dbFD)
Open ↗
null_model_FD()
SES and p-value against species-shuffling null model
Open ↗