fortify.cca: Fortify a '"cca"' object.

fortify.ccaR Documentation

Fortify a "cca" object.

Description

Fortifies an object of class "cca" to produce a data frame of the selected axis scores in long format, suitable for plotting with ggplot.

Usage

## S3 method for class 'cca'
fortify(
  model,
  data,
  axes = 1:6,
  display = c("sp", "wa", "lc", "bp", "cn"),
  ...
)

Arguments

model

an object of class "cca", the result of a call to cca, rda, or capscale.

data

currently ignored.

axes

numeric; which axes to extract scores for.

display

numeric; the scores to extract in the fortified object.

...

additional arguments passed to scores.cca, and scores.rda.

Details

TODO

Value

A data frame in long format containing the ordination scores. The first two components are the axis scores.

Author(s)

Gavin L. Simpson

Examples

data(dune)
data(dune.env)

sol <- cca(dune ~ A1 + Management, data = dune.env)
head(fortify(sol))

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