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

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

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.

Details

TODO

Author

Gavin L. Simpson