orddist | R Documentation |
Calculates the pair-wise distances of all points in an ordination. The function is simply a wrapper for the ‘dist’ function, but simplifies managing ordinations that store their coordinates under different names, as well as managing the desired dimensionality of the calculations.
orddist(x,dim)
x |
an ordination object of class ‘dsvord’ from |
dim |
the desired dimensionality to be included in the calculations (must be <= number of dimensions of the ordinations) |
An object of class ‘dist’ is produced
Ordinations are low dimensional representations of multidimensional spaces. This function produces data on the low-dimensional distances for other analyses.
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
orddist(pco.bc,dim=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.