Description Usage Arguments Note Examples
Creates a hierachical dendrogram. It is also possible to colour the leaves by group.
1 2 |
veg |
vegetation matrix |
method |
method of the dissimilarity index |
env |
environment matrix with the group information |
group.col |
column in which the group is located |
colvec |
colour vector of the groups; like c("col1","col2","col3") or c(1,2,3) |
pch |
point vector of the groups; like c(1,2,3) |
cex |
scales plot |
lab.cex |
scales of label |
Information about the different dissimilarity indexes read vegdist
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(vegan)
data(dune)
data(dune.env)
# Simple dendrogram
den <- dendro(veg = dune)
plot(den, horiz = TRUE)
# Dendrogram coloured by group
Cvec = c("black", "gray20", "gray40", "gray80")
Pch = c(15, 16, 17, 18)
den <- dendro(veg = dune, env = dune.env, group.col = 3, colvec = Cvec, pch = Pch, cex = 2)
plot(den, leaflab = "none", horiz = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.