Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.nmds

Plot information about NMDS ordination


Description

Graphical display of stress and r2 for NMDS ordination along number of dimensions.

Usage

## S3 method for class 'nmds'
plot(x, plot = TRUE, xlab = "Dimensions", ...)

Arguments

x

an object of S3 class nmds, created by nmds()

plot

optional, if TRUE a figure is produced

xlab

optional, label for x axis of graph

...

optional, other graphics parameters

Value

Produces a two-panel plot with stress and r2 for ordination by number of dimensions. Points show the mean value; lines indicate minimum and maximum.

Author(s)

Dean Urban

See Also

Examples

data(iris)
iris.d <- dist(iris[,1:4])

### nmds() is timeconsuming, so this was generated
### in advance and saved.
### set.seed(1234)
### iris.nmds <- nmds(iris.d, nits=20, mindim=1, maxdim=4)
### save(iris.nmds, file="ecodist/data/iris.nmds.rda")
data(iris.nmds)

# examine fit by number of dimensions
plot(iris.nmds)

# choose the best two-dimensional solution to work with
iris.nmin <- min(iris.nmds, dims=2)

ecodist

Dissimilarity-Based Functions for Ecological Analysis

v2.0.7
GPL (>= 2)
Authors
Sarah Goslee [aut, cre], Dean Urban [aut]
Initial release
2020-08-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.