Learn R Programming

cluster (version 2.0.4)

plantTraits: Plant Species Traits Data

Description

This dataset constitutes a description of 136 plant species according to biological attributes (morphological or reproductive)

Usage

data(plantTraits)

Arguments

encoding

latin1

source

Vallet, Jeanne (2005) Structuration de communaut�s v�g�tales et analyse comparative de traits biologiques le long d'un gradient d'urbanisation. M�moire de Master 2 'Ecologie-Biodiversit�-Evolution'; Universit� Paris Sud XI, 30p.+ annexes (in french)

Details

Most of factor attributes are not disjunctive. For example, a plant can be usually pollinated by insects but sometimes self-pollination can occured.

Examples

Run this code
data(plantTraits)

## Calculation of a dissimilarity matrix
library(cluster)
dai.b <- daisy(plantTraits,
               type = list(ordratio = 4:11, symm = 12:13, asymm = 14:31))

## Hierarchical classification
agn.trts <- agnes(dai.b, method="ward")
plot(agn.trts, which.plots = 2, cex= 0.6)
plot(agn.trts, which.plots = 1)
cutree6 <- cutree(agn.trts, k=6)
cutree6

## Principal Coordinate Analysis
cmdsdai.b <- cmdscale(dai.b, k=6)
plot(cmdsdai.b[, 1:2], asp = 1, col = cutree6)

Run the code above in your browser using DataLab