# ordcomp: Ordination to Dissimilarity Comparison In labdsv: Ordination and Multivariate Analysis for Ecology

## Description

Plots the distribution of pair-wise distances of all points in an ordination over the distances in the dissimilarity or distance matrix the ordination was calculated from. Prints the correlation between the two on the graph.

## Usage

 ```1 2``` ```ordcomp(x,dis,dim,xlab="Computed Distance",ylab="Ordination Distance", title="",pch=1) ```

## Arguments

 `x` an ordination object from `pca`, `pco`, `nmds`, `fso` or `ordiplot` `dis` an object of class `dist` `dim` the number of dimensions in the ordination to use (default=all) `xlab` the X axis label for the graph `ylab` the Y axis label for the graph `title` a title for the plot `pch` the symbol to plot

## Value

A plot is created on the current graphics device. Returns the (invisible) correlation.

## Note

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

## Author(s)

David W. Roberts [email protected]

## References

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

## Examples

 ```1 2 3 4``` ```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 ordcomp(pco.bc,dis.bc) ```

### Example output ```Loading required package: mgcv
This is mgcv 1.8-25. For overview type 'help("mgcv-package")'.