Learn R Programming

entropart (version 1.1.3)

PhyloDiversity: Phylogenetic Diversity of a Community

Description

Calculates the phylogenetic diversity of order $q$ of a probability vector.

Usage

PhyloDiversity(Ps, q, Tree, Normalize = TRUE, CheckArguments = TRUE)
bcPhyloDiversity(Ns, q, Tree, Normalize = TRUE, Correction = "Best",
  CheckArguments = TRUE)
is.PhyloDiversity(x)
## S3 method for class 'PhyloDiversity':
summary(object, \dots)

Arguments

Ps
A probability vector, summing to 1.
Ns
A numeric vector containing species abundances.
q
A number.
Tree
An object of class hclust or phylog. The tree must be ultrametric.
Normalize
If TRUE (default), the Total diversity is not affected by the height of the tree. If FALSE, it is proportional to the height of the tree.
Correction
A string containing one of the possible corrections: "None" (no correction), "ChaoShen", "Grassberger", "Holste", "Bonachela" or "Best", the default value.
CheckArguments
Logical; if TRUE, the function arguments are verified. Should be set to FALSE to save time when the arguments have been checked elsewhere.
x
An object to be tested or plotted
object
A PhyloDiversity object to be summarized.
...
Additional arguments to be passed to the generic methods.

Value

  • An object of class PhyloDiversity is a list:
  • DistributionThe distribution used to calculate diversity
  • FunctionThe function used to calculate diversity
  • TreeThe functional or phylogenetic tree used to calculate diversity
  • NormalizedLogical. Indicates whether phylodiversity is normalized or proportional to the height of the tree.
  • TypeThe type of diversity ("alpha", "beta" or "gamma").
  • OrderThe order of diversity $q$.
  • CutsA named vector containing values of neutral diversity along the tree. Names are cut ends, i.e. the ends of intervals (the first interval starts at 0 for leaves, the max value is the height of the tree).
  • TotalA value equal the total diversity (obtained by transforming the total normalized entropy), multiplied by the tree height if Normalize is FALSE.
  • is.PhyloDiversity returns TRUE if the object is of class PhyloDiversity. summary.PhyloDiversity returns a summary of the object's value. PhyloDiversity objects can be plotted by plot.PhyloValue because PhyloDiversity objects are also of class PhyloValue.

Details

The phylogenetic entropy is its generalization of HCDT entropy to unequal species distances (Pavoine et al., 2009). Diversity is obtained by transforming generalized entropy. Bias correction requires the number of individuals to estimate sample Coverage. Use bcPhyloDiversity and choose the Correction.

References

Chao, A., Chiu, C.-H. and Jost, L. (2010). Phylogenetic diversity measures based on Hill numbers. Philosophical Transactions of the Royal Society B 365(1558): 3599-609. Marcon, E., Herault, B. (2014). Decomposing Phylodiversity. HAL hal-00946177(version 1). Pavoine, S., Love, M. S. and Bonsall, M. B. (2009). Hierarchical partitioning of evolutionary and ecological patterns in the organization of phylogenetically-structured species assemblages: Application to rockfish (genus: Sebastes) in the Southern California Bight. Ecology Letters 12(9): 898-908.

See Also

PhyloEntropy, Diversity

Examples

Run this code
# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest
  #      and their taxonomy)
  data(Paracou618)
  # Ps is the vector of probabilities
  Ps <- Paracou618.MC$Ps
  # Calculate the phylogenetic Shannon diversity of the plot
  summary(PhyloDiversity(Ps, 1, Paracou618.Taxonomy) -> d)
  plot(d)
  
  # Ns is the vector of abundances of the metacommunity
  Ns <- Paracou618.MC$Ns
  # Calculate the phylogenetic Shannon diversity of the plot
  summary(bcPhyloDiversity(Ns, 1, Paracou618.Taxonomy, Correction = "Best") -> d)
  plot(d)

Run the code above in your browser using DataLab