Learn R Programming

ggvegan (version 0.1-0)

fortify.cca: 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 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.

Value

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

Details

TODO

Examples

Run this code
# NOT RUN {
data(dune)
data(dune.env)

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

Run the code above in your browser using DataLab