R: Example for nmds

iris.nmds {ecodist} | R Documentation

## Example for nmds

### Description

An object of class nmds for use in the example for `nmds`. Many of the functions in `ecodist` take a long time to run, so prepared examples have been included.

### Usage

    data(iris.nmds)

### Format

See `nmds` for current format specification.

### Author(s)

Sarah Goslee

### See Also

`nmds`

### 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)

[Package ecodist version 2.0.1 Index]