plotStability: Plot Stability Results

View source: R/plotStability.R

plotStabilityR Documentation

Plot Stability Results

Description

This function takes the output of betaStability() and creates a point plot using ggplot2.

Usage

plotStability(stability_result, sitenames = NULL)

Arguments

stability_result

The output from betaStability() function.

sitenames

Optional vector of site names. If not provided, uses rownames from stability_result. Users shall make sure the provided sitenames correspond to the rownames of stability_result in the correct order.

Value

A ggplot2 plot object.

Examples

library(vegan)
data(varespec)
data(varechem)
results <- betaStability(
    comtable = varespec,
    envmeta = varechem, method = c("linearPred", "mlPred")
)
plotStability(results)


betaStability documentation built on June 5, 2026, 5:08 p.m.