Learn R Programming

ggvegan (version 0.1-0)

fortify.envfit: Fortify method for envfit objects

Description

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

Usage

# S3 method for 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.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab