linnean {BAT} | R Documentation |
Create Linnean tree.
Description
Creates a Linnean tree from taxonomic hierarchy.
Usage
linnean(taxa, distance = NULL)
Arguments
taxa |
A taxonomic matrix with columns ordered according to linnean hierarchy starting with the highest. |
distance |
A vector with distances between levels starting with the highest. If not provided distances will be evenly distributed from 1 to 0. |
Value
An hclust with all species.
Examples
family <- c("Nemesiidae", "Nemesiidae", "Zodariidae", "Zodariidae")
genus <- c("Iberesia", "Nemesia", "Zodarion", "Zodarion")
species <- c("Imachadoi", "Nungoliant", "Zatlanticum", "Zlusitanicum")
taxa <- cbind(family, genus, species)
par(mfrow = c(1, 2))
plot(linnean(taxa))
plot(linnean(taxa, c(2, 0.5, 0.3)))
[Package BAT version 2.9.6 Index]