plot.ascent_pairwise: Plot Pairwise Functional Spatial Divergence

View source: R/plot.R

plot.ascent_pairwiseR Documentation

Plot Pairwise Functional Spatial Divergence

Description

Visualizes spatial functional restructuring (Centroid & Hull) between two communities.

Usage

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

Arguments

x

An object of class ascent_pairwise.

contrast

Character. The contrast to plot (e.g., "SiteA_vs_SiteB").

type

Character. What to plot? "pcoa", "leverage", or "both".

n_sp

Integer. Number of top species to display. Default is 10.

...

Additional graphical arguments.

Value

A ggplot object.


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