Description Usage Arguments Details Author(s) References See Also Examples
The method returns two plots corresponding to an unordered and an ordered colored matrix of dissimilarities.
1 2 3 |
obj |
An object of class |
colors |
The number of colors, or a vector of colors. See ‘Details’. |
byrank |
Boolean, if |
diag |
Boolean, if |
method |
Method argument passed to |
ordered.only |
Only display the ordered dissimilarity matrix. Defaults to |
translate |
Display scientific taxon names as defined in |
... |
Arguments passed to |
If colors
is a single integer, the argument determines the number of colors to be used with cm.colors
. If colors
is vector of colors longer than 1 those colors will be used. The function uses dmat.color
and order.single
in package gclus.
Roland Kaiser, implemented for vegsoup inspired by code in colldiss.R
by Francois Gillet supplied with the Book Numerical Ecology with R (Borcard et al. 2011)
Borcard, D., Gillet, F., and Legendre, P. (2011). Numerical Ecology with R. Springer.
dmat.color
in package gclus
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | require(vegsoup)
data(barmstein)
x <- barmstein
coldiss(x) # default
# other dissimilarity
vegdist(x) <- "bray"
coldiss(x, 4)
# more colors
require(RColorBrewer)
cols <- colorRampPalette(RColorBrewer::brewer.pal(11, "Spectral"))
coldiss(x, cols(4), byrank = FALSE, diag = TRUE)
# R-mode analysis, see ?as.dist
# first collapse layers
x.0l <- layers(x, aggregate = "layer",
collapse = "0l", verbose = TRUE)
decostand(x.0l) <- "chi.square"
vegdist(x.0l)
## Not run:
# annotate scientific species names
# label only the diagonal to avoid cluttered display
# mode = "R" defunct due to generic dispatch of as.dist(x)
coldiss(dta.0l, rev(cols(20)), mode = "R",
ordered.only = TRUE, translate = TRUE, diag = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.