Learn R Programming

ggvegan (version 0.1-0)

fortify.metaMDS: Fortify a "mataMDS" object.

Description

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

Usage

# S3 method for metaMDS
fortify(model, data, ...)

Arguments

model

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

data

currently ignored.

...

additional arguments passed to scores.metaMDS. Note you can't use display.

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 {
## load example data
data(dune)

ord <- metaMDS(dune)
head(fortify(ord))
# }

Run the code above in your browser using DataLab