ordneighbors: Nearest Neighbors Plotted in Ordination Space

Description Usage Arguments Value Note Author(s) References Examples

Description

For each sample unit in an ordination, for each of n nearest neighbors, draws an arrow from the sample unit to its n neighbors.

Usage

1
ordneighbors(ord,dis,numnbr=1,ax=1,ay=2,digits=5,length=0.1)

Arguments

ord

an ordination object of class ‘dsvord’ from pca, pco, nmds, fso

dis

an object of class dist

numnbr

the number (order) of nearest neighbors to plot

ax

the dimension t plot on the X axis

ay

the dimension to plot on the y axis

digits

the number of digits to report

length

the length of the arrowhead

Value

Additional information is plotted on an existing ordination and summary information is printed. Returns an (invisible) list of summary values.

Note

Ordinations are low dimensional representations of multidimensional spaces. This function attempts to portray how well the low dimensional solution approximates the neighborhood relations of the full dimensional space.

If numnbr = 1 and there are ties the function plots arrows for all tied values. If n > 1 the function draws arrows for all values with rank <= n.

Author(s)

David W. Roberts droberts@montana.edu http://ecology.msu.montana.edu/droberts/droberts.html

References

http://ecology.msu.montana.edu/labdsv/R/labs/lab9/lab9.html

Examples

1
2
3
4
5
6
7
data(bryceveg) # produces a vegetation data.frame
dis.bc <- dsvdis(bryceveg,'bray/curtis') # creates a Bray/Curtis 
                                         # dissimilarity matrix
pco.bc <- pco(dis.bc,2) # produces a two-dimensional Principal 
                        # Coordinates Ordination object
plot(pco.bc)
ordneighbors(pco.bc,dis.bc)

labdsv documentation built on Aug. 4, 2019, 5:03 p.m.

Related to ordneighbors in labdsv...