fortify.envfit: Fortify method for 'envfit' objects

fortify.envfitR Documentation

Fortify method for envfit objects

Description

Produces a tidy data frame from the results of an envfit object.

Usage

## S3 method for class 'envfit'
fortify(model, data, ...)

Arguments

model

an object of class envfit, the result of a call to envfit.

data

additional data to augment the envfit results. Currently ignored.

...

arguments passed to scores.envfit.

Value

A data frame with columns label, type, containing the label for, and whether each row refers to, the fitted vector or factor. Remaining variables are coordinates on the respective ordination axes returned by scores.envfit.

Author(s)

Gavin L. Simpson

Examples

data(varespec, varechem)
ord <- metaMDS(varespec)
fit <- envfit(ord, varechem, perm = 199)

fortify(fit)

data(dune, dune.env)
ord <- cca(dune)
fit <- envfit(ord ~ Moisture + A1, dune.env, perm = 199)

fortify(fit)

gavinsimpson/ggvegan documentation built on July 28, 2023, 9:24 a.m.