BAT (version 2.1.1)

uniqueness: Phylogenetic/functional uniqueness of species.

Description

Dissimilarity between each species and the single closest in a community.

Usage

uniqueness(comm, tree, distance, relative = TRUE)

Arguments

comm

A sites x species matrix, with either abundance or incidence data. If missing, the uniqueness using the full tree or distance matrix is calculated.

tree

An hclust or phylo object representing a phylogenetic or functional tree. One of tree or distance must be provided.

distance

A dist object representing the phylogenetic or functional distance between species.

relative

A boolean (T/F) indicating whether uniqueness should be relative to the maximum distance between any two species in the tree or distance matrix.

Value

A matrix of sites x species values.

Details

This is equivalent to the originality measure of Mouillot et al. (2013).

References

Mouillot, D., Graham, N.A., Villeger, S., Mason, N.W. & Bellwood, D.R. (2013) A functional approach reveals community responses to disturbances. Trends in Ecology and Evolution, 28: 167-177.

Examples

Run this code
# NOT RUN {
comm <- matrix(c(1,2,0,0,0,1,1,0,0,0,0,2,2,0,0,0,0,1,1,1), nrow = 4, byrow = TRUE)
distance <- dist(c(1:5), method="euclidean")
tree <- hclust(distance, method="average")
uniqueness(tree = tree)
uniqueness(distance = distance)
uniqueness(comm, tree)
# }

Run the code above in your browser using DataCamp Workspace