Multi-Layer Characterization of Functional Community Restructuring

Implements the 'ASC-CFD' (Assemblage Shift Characterization - Community Functional Dynamics) framework for characterizing functional community restructuring through positional (centroid displacement), dispersive (functional dispersion), and boundary (convex hull volume) components. Tests each component against two null models: a sampling null model (individuals or replicates reassigned between communities, optionally only within blocks of matched samples) and a stratified trait-permutation null model, with a single global test when many communities are compared. Species-level leverage identifies the taxa driving functional shifts, and functional entities (species with similar traits) allow an exploratory look at replacement among similar species. Supports both temporal (paired) and spatial (pairwise) comparisons.


ascent: A multi-layer framework for characterizing functional community restructuring through positional, dispersive and boundary components

DOI

The ascent package implements the ASC-CFD (Assemblage Shift Characterization — Community Functional Dynamics) framework.

Two communities can differ by the same amount of functional turnover while changing in very different ways: one moves to another region of trait space, another redistributes abundance internally, a third gains or loses extreme phenotypes. ascent characterizes these processes through three layers measured in a functional space (a PCoA of Gower distances between species traits), tests each layer against two null models, and identifies the species that drove the change.

What does each layer measure?

Layer Metric Question
Position ΔC (rΔC %, normalised) Where is the community moving in trait space?
Dispersion ΔFDis Is abundance concentrating near the centre or spreading towards the edges?
Volume ΔFRic Are the functional boundaries expanding or contracting?

ΔC is the shift of the abundance-weighted centroid. FDis is abundance-weighted dispersion around it. FRic is the volume of the convex hull of the species present: it depends only on the extreme species and is not abundance-weighted, so read it as a descriptor of the functional boundary.

Two null models

  • A (sampling): individuals — or whole samples, when both states have replicates — are reassigned at random between the states. Is the change larger than expected from sampling alone?
  • B (traits, stratified): trait positions are shuffled among species of similar abundance. Is the change directed by the species' traits? For position, the shift along each axis is measured in units of its own chance variation, so a change in a trait unrelated to the first axis is detected as well as one along it. summary() also names the trait whose abundance-weighted mean moved most, or for a categorical trait the level whose share of abundance changed most (descriptive, not a test).
A B Reading
no — no evidence of change beyond sampling
yes yes (upper tail) change beyond sampling, directed by traits
yes no change beyond sampling without detectable trait structure

For many communities (asc_pairwise()), asc_null() runs one global test per layer instead of one p-value per pair, with the same reading.

Installation

install.packages("ascent")                       # CRAN
# devtools::install_github("V3ndetta96/ascent")  # development version

Workflow

The example uses birds_sim, a simulated data set included in the package: 24 bird species, two sites surveyed five times before and five times after an event. At Logged the community changes; at Control nothing changes.

library(ascent)

# 1. Check the functional space: number of axes (rule: mSD) and quality
assess_functional_space(birds_sim$traits)

# 2. Describe the design: one contrast per site, Before vs After, with the
#    five surveys of each state as replicates
res <- asc_paired(birds_sim$traits, birds_sim$counts,
                  sites = birds_sim$samples$site,
                  time = birds_sim$samples$time, ref_time = "Before")

# 3. Test each layer against A and B (999 permutations for research)
res <- asc_null(res, n_perm = 999, seed = 1)
summary(res)     # reading of each test, permutation used, trait that moved most

# 4. Which species moved the centroid?
tr <- asc_transitions(res)
summary(tr)
plot(res, contrast = "Logged", type = "both", n_sp = 5)

Decisions that depend on your design:

Your design What to do
One sample per state A reassigns individuals (multinomial sampling error only); use replicates whenever possible
Replicates of both states taken in matched units (same months, plots, survey rounds) give that unit as blocks in asc_paired()
Independent replicates (spaced, not matched) nothing: whole samples are permuted freely
Consecutive samples of each state (e.g. consecutive months) they are pseudoreplicates: no permutation removes this dependence, A is liberal; space the samples or treat p-values as indicative
Many communities (a gradient, a series) asc_pairwise() and the global test of asc_null()

summary() reports both one-tailed p-values, the two-tailed value for dispersion and volume, and the p-value adjusted across the three layers (Benjamini-Hochberg by default); the Reading column uses the adjusted value.

Functions

Function Purpose
assess_functional_space() Number of axes and quality of the functional space
asc_paired() Reference vs comparison state at each site (temporal or paired contrasts)
asc_pairwise() All pairs of many communities
asc_null() Null models A and B per contrast; one global test for asc_pairwise()
asc_transitions() Species leverage; partition among shared, gained and lost species
asc_entities() Functional entities (groups of similar species), exploratory
asc_baseline() Metrics of each community without contrasts

For a complete guide with the reading of every output: vignette("ascent_tutorial").

Methodological notes

  • Number of axes. By default (dim_retention = "msd") the number of axes, 2 to 10, whose distances best reproduce the trait distances (Maire et al. 2015). FRic can only be computed in communities with more species than axes. Versions up to 0.5.0 used the axes needed to reach 80 % of the variance (dim_retention = "variance").
  • Space quality. If assess_functional_space() reports a quality below 0.8, review the traits first. correction = "sqrt" makes the space Euclidean, but it changes the distances between species and its effect on the tests has not been evaluated.
  • Known limits of the null models. B is slightly liberal for dispersion (about 6.5 % false positives instead of 5 %), for changes of evenness only (about 7–8 %) and when individuals are captured in groups (about 7 %): treat p-values close to 0.05 with caution. The lower tail of B is shown for description only.
  • Functional entities are exploratory: only replacement within an entity is seen (similar species in different entities look like a change between entities), so a negative result does not rule out redundancy.
  • Normalisation. Only the positional shift (rΔC %) is normalised (by the largest distance between species) and comparable across studies; ΔFDis and ΔFRic are absolute differences in the retained space.

Leverage: an additive decomposition

$$\sum_{i=1}^{S} \text{Leverage}_i = |\Delta C|, \qquad \text{Leverage}_i = \Delta p_i , (\mathbf{f}_i - \mathbf{r}) \cdot \hat{v}$$

where $\Delta p_i$ is the change in relative abundance of species $i$, $\mathbf{f}_i$ its coordinates, $\hat{v}$ the unit vector of the shift and $\mathbf{r}$ a reference point (by default the midpoint between the two centroids). Positive leverage drives the shift; negative leverage resists it. The column Orthogonal gives the part of each species' contribution perpendicular to the shift, so that a small leverage is not read as a small change.

Citation

While the manuscript is in preparation, please cite the package:

Muñoz-Li, R. R. & F. Alvarez-Denis (2026). ascent: Multi-Layer Characterization of Functional Community Restructuring. R package. https://doi.org/10.5281/zenodo.20388185

The entry for the installed version is given by citation("ascent").

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ascent")

0.5.1 by Rogelio R. Muñoz-Li, a day ago


https://github.com/V3ndetta96/ascent


Report a bug at https://github.com/V3ndetta96/ascent/issues


Browse source code at https://github.com/cran/ascent


Authors: Rogelio R. Muñoz-Li [aut, cre] , Flavia Alvarez-Denis [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cluster, ggplot2, stats, utils, geometry, withr

Suggests knitr, patchwork, rmarkdown, testthat


See at CRAN