ordneighbors | R Documentation |
For each sample unit in an ordination, for each of n nearest neighbors, draws an arrow from the sample unit to its n neighbors.
ordneighbors(ord,dis,numnbr=1,ax=1,ay=2,digits=5,length=0.1)
ord |
an ordination object of class ‘dsvord’
from |
dis |
an object of class |
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 |
Additional information is plotted on an existing ordination and summary information is printed. Returns an (invisible) list of summary values.
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.
David W. Roberts droberts@montana.edu
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.