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

View source: R/fortify.prc.R

fortify.prcR Documentation

Fortify a "prc" object

Description

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

Usage

## S3 method for class 'prc'
fortify(model, data, scaling = 3, axis = 1, ...)

Arguments

model

an object of class "prc", the result of a call to prc.

data

currently ignored.

scaling

the desired scaling. See scores.cca for details.

axis

numeric; which PRC axis to extract. Default is axis = 1, which is the most generally useful choice.

...

additional arguments currently ignored.

Details

TODO

Value

A data frame in long format containing the ordination scores. The first three components are the Time, Treatment, and associated Response. The last two components, score and label are an indictor factor and a label for the rows for use in plotting.

Author(s)

Gavin L. Simpson


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