Learn R Programming

picante (version 1.8.2)

comdistnt: Calculates inter-community mean nearest taxon distance

Description

Calculates MNTD (mean nearest taxon distance) separating taxa in two communities, a measure of phylogenetic beta diversity

Usage

comdistnt(comm, dis, abundance.weighted = FALSE, exclude.conspecifics = FALSE)

Arguments

comm

Community data matrix

dis

Interspecific distance matrix

abundance.weighted

Should mean nearest taxon distances from each species to species in the other community be weighted by species abundance? (default = FALSE)

exclude.conspecifics

Should conspecific taxa in different communities be exclude from MNTD calculations? (default = FALSE)

Value

Distance object of MNTD values separating each pair of communities.

Details

This metric has also been referred to as MNND (mean nearest neighbour distance).

This function calculates a measure of phylogenetic beta diversity: the average phylogenetic distance to the most similar taxon or individual in the other community for taxa or individuals in two communities.

References

C.O. Webb, D.D. Ackerly, and S.W. Kembel. 2008. Phylocom: software for the analysis of phylogenetic community structure and trait evolution. Bioinformatics 18:2098-2100.

See Also

mntd, ses.mntd

Examples

Run this code
# NOT RUN {
data(phylocom)
comdistnt(phylocom$sample, cophenetic(phylocom$phylo), abundance.weighted=FALSE)
# }

Run the code above in your browser using DataLab