plot.ascent_paired: Plot Multidimensional Functional Restructuring

View source: R/plot.R

plot.ascent_pairedR Documentation

Plot Multidimensional Functional Restructuring

Description

Visualizes the functional trajectory (Centroid shift) and volume shift (Convex Hull) of a specific site/contrast in the PCoA space, alongside the species leverage.

Usage

## S3 method for class 'ascent_paired'
plot(x, contrast, type = c("both", "pcoa", "leverage"), n_sp = 10, ...)

Arguments

x

An object of class ascent_paired.

contrast

Character. The exact name of the site/contrast to plot.

type

Character. What to plot? "pcoa" (Trajectory & Hull), "leverage" (Drivers), or "both". Default is "both".

n_sp

Integer. Number of top species to display in the leverage plot. Default is 10.

...

Additional graphical arguments.

Value

A ggplot object (or patchwork object if type = "both").


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