Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

orddist

Ordination Point Pair-Wise Distance Calculation


Description

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.

Usage

orddist(x,dim)

Arguments

x

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

dim

the desired dimensionality to be included in the calculations (must be <= number of dimensions of the ordinations)

Value

An object of class ‘dist’ is produced

Note

Ordinations are low dimensional representations of multidimensional spaces. This function produces data on the low-dimensional distances for other analyses.

Author(s)

Examples

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)

labdsv

Ordination and Multivariate Analysis for Ecology

v2.0-1
GPL (>= 2)
Authors
David W. Roberts <droberts@montana.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.