R/ascent-package.R

#' ascent: Multi-Layer Characterization of Functional Community Restructuring
#'
#' @description
#' \code{ascent} implements the ASC-CFD framework (Assemblage Shift
#' Characterization - Community Functional Dynamics). It characterizes the
#' change in the functional structure of a community through three layers
#' measured in a functional space (a PCoA of Gower distances between species
#' traits): position (shift of the abundance-weighted centroid), dispersion
#' (FDis) and volume (FRic). Each layer is tested against two null models: A
#' (sampling: is the change larger than sampling noise?) and B (traits,
#' stratified by abundance: is the change directed by the species' traits?).
#'
#' @section Workflow:
#' \enumerate{
#'   \item \code{\link{assess_functional_space}}: check the functional space
#'     built from the traits (number of axes and quality).
#'   \item Describe the design. \code{\link{asc_paired}}: a reference state
#'     against a comparison state at each site, with replicate samples if
#'     available and, if both states were sampled in matched units (the same
#'     months, plots), those units as \code{blocks}.
#'     \code{\link{asc_pairwise}}: many communities (a gradient, a series).
#'   \item \code{\link{asc_null}}: test each layer against A and B (one global
#'     test per layer for \code{asc_pairwise()} objects), then
#'     \code{summary()} for a reading of each test, the permutation used and
#'     the trait that moved most.
#'   \item \code{\link{asc_transitions}}: which species moved the centroid
#'     (leverage), and how much of the shift comes from shared, gained or lost
#'     species. \code{plot()} draws the shift and the leverages.
#'   \item Optional, exploratory: \code{\link{asc_entities}} groups species
#'     with similar traits, to look at replacement among similar species.
#' }
#' \code{\link{asc_baseline}} gives the metrics of each community without
#' contrasts. \code{summary()} and \code{plot()} work on every result.
#'
#' Start with the tutorial: \code{vignette("ascent_tutorial", package = "ascent")}.
#' The data set \code{\link{birds_sim}} is used in the tutorial and examples.
#'
#' @keywords internal
"_PACKAGE"

Try the ascent package in your browser

Any scripts or data that you put into this service are public.

ascent documentation built on Nov. 30, 2026, 1:07 a.m.