min.nmds | R Documentation |
Finds minimum stress configuration from output of nmds()
## S3 method for class 'nmds'
min(..., na.rm = FALSE, dims = 2)
nmds.min(x, dims = 2)
... |
output from nmds() |
x |
output from nmds() |
dims |
desired dimensionality of result. If dims = 0 then the overall minimum stress configuration is chosen. By default, the best two-dimensional configuration is returned. |
na.rm |
Not used; there should be no NA values in a NMDS configuration. |
For back-compatibility, the nmds.min
function remains.
Configuration of minimum stress ordination (dataframe of coordinates). The stress and r^2 for the minimum stress configuration are stored as attributes.
Sarah Goslee
nmds
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.