| asc_baseline | R Documentation |
Calculates, for each community separately and without contrasts, the abundance-weighted centroid on each axis of the functional space (CWM), functional dispersion (FDis) and convex hull volume (FRic). Useful to describe the communities before comparing them.
asc_baseline(
traits,
abund,
dist_method = "gower",
dim_retention = c("msd", "variance", "broken_stick"),
var_tol = 0.8,
na.rm = TRUE,
correction = c("none", "sqrt"),
type = NULL,
weights = NULL
)
traits |
A data frame or matrix of functional traits, one row per species (row names = species). Categorical traits should be factors. |
abund |
A data frame or matrix of abundances, one row per community
and one column per species (matched to |
dist_method |
Distance metric for the trait matrix. Default is "gower". |
dim_retention |
Character. How many PCoA axes to keep: |
var_tol |
Numeric. Proportion of cumulative variance to retain when
|
na.rm |
Logical. Remove missing values? Default is TRUE. |
correction |
Character. |
type, weights |
Optional; passed unchanged to |
An S3 object of class ascent_baseline (it also carries the
class ascfcd_base of ascent 0.5.0, which will be dropped in 0.6.0), a
list whose main element is entities_results (one row per community:
Entity, the CWM on each axis, FDis and FRic). Here
"Entity" means community (row of abund), not a functional entity
of asc_entities.
# Absolute metrics of each community (no contrasts): community-weighted
# position on each axis (CWM), dispersion (FDis) and volume (FRic)
base <- asc_baseline(birds_sim$traits, birds_sim$landscape)
summary(base)
# Compare FDis and FRic along the gradient from primary forest to farmland
base$entities_results[, c("Entity", "FDis", "FRic")]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.