dendro: Hierarchical Cluster (Dendrogram)

Description Usage Arguments Note Examples

Description

Creates a hierachical dendrogram. It is also possible to colour the leaves by group.

Usage

1
2
dendro(veg, method = "bray", env = NULL, group.col = NULL,
  colvec = "black", pch = 20, cex = 1, lab.cex = 0.7)

Arguments

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

Note

Information about the different dissimilarity indexes read vegdist

Examples

 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)
 

SvenRubanschi/simpECO documentation built on June 4, 2019, 12:13 a.m.