rankDC {analogue}  R Documentation 
Rank correlation between environmental and species dissimilarities.
Description
Computes the rank correlation between distances between sites in terms of gradient variables, such as environmental ones, and species composition.
Usage
rankDC(g, y, dc = c("chord", "bray", "euclidean", "chi.square", "gower"),
method = "spearman")
## S3 method for class 'rankDC'
plot(x, sort = TRUE, decreasing = FALSE,
xlab = "Rank correlation", color = "blue",
pch = 21, bg = "blue", lcolor = "grey",
lty = "solid", ...)
## S3 method for class 'rankDC'
dotplot(x, data = NULL, sort = TRUE, decreasing = FALSE,
xlab = "Rank correlation", ...)
Arguments
g 
the gradient values; usually a data frame of environmental data. 
y 
the species data; usually a data frame. 
dc 
character; the set of dissimilarity coefficients for which rank correlations with gradient distance are to be computed. 
method 
character; the correlation method to use. See the

x 
an object of class 
data 
NULL; ignored, only present for purposes of conformance to generic definition. 
sort , decreasing 
logical; should observations be sorted prior to plotting? If so, should they be sorted in order of decreasing size? 
xlab 
The xaxis label for the plot. 
color , pch , bg , lcolor , lty 
arguments passed to

... 
arguments passed to other methods, including

Value
A named vector of rank correlations is returned.
Author(s)
Gavin L. Simpson, based on rankindex
from the
vegan package.
See Also
rankindex
from package vegan. For the
dotplot
method, see dotplot
.
Examples
data(swappH)
data(swapdiat)
rc < rankDC(swappH, swapdiat, dc = c("chord","euclidean","gower"))
## base plot uses dotchart()
plot(rc)
## lattice version of the base plot
dotplot(rc)