Learn R Programming

picante (version 1.8.2)

pcd: Phylogenetic Community Dissimilarity

Description

Pairwise dissimilarity in phylogenetic community composition that is partitioned into a nonphylogenetic and a phylogenetic component.

Usage

pcd(comm, tree, PSVmncd=NULL, PSVpool=NULL, reps=10^4)

Arguments

comm

Community data matrix

tree

Object of class phylo or a phylogenetic covariance matrix

PSVmncd

Vector of null mean conditional phylogenetic species variability (PSV) values

PSVpool

The standard, unconditional PSV calculated for the species pool

reps

The number of random draws from the species pool used to produce PSVmncd

Value

The function returns a list with items:

PCD

A square matrix of PCD values

PCDc

A square matrix of PCDc values

PCDp

A square matrix of PCDp values

PSVmncd

A vector of null mean conditional PSV values used to calculate PCD

PSVpool

The unconditional PSV of the species pool used to calculate PCD

Details

Phylogenetic community dissimilarity (PCD) is the pairwise differences between communities derived by asking how much of the variance among species in the values of a hypothetical nonselected trait in one community can be predicted by the known trait values of species in another community. PCD is partitioned into a nonphylogenetic component that reflects shared species between communities (PCDc) and a phylogenetic component that reflects the evolutionary relationships among nonshared species (PCDp). In order to compare communities that vary in species richness, the metric is standardized under the assumption that the species in communities are selected at random from the species pool. The analyses here define the species pool as the list of all species in the set of communities in comm, but the species pool can be defined under any hypothesis of community assembly either by manipulating the code or inputting a user defined PSVmncd and PSVpool.

References

Ives A.R. & Helmus M.R. (2010). Phylogenetic metrics of community similarity. The American Naturalist, 176, E128-E142.

See Also

psv, phylosor, unifrac

Examples

Run this code
# NOT RUN {
data(phylocom)
pcd(phylocom$sample, phylocom$phylo)
# }

Run the code above in your browser using DataLab