Learn R Programming

entropart (version 1.1.3)

PhyloBetaEntropy: Phylogenetic Beta Entropy of a community

Description

Calculates the phylogenetic beta entropy of order $q$ of a a community belonging to a metacommunity.

Usage

PhyloBetaEntropy(Ps, Pexp, q, Tree, Normalize = TRUE, CheckArguments = TRUE)
bcPhyloBetaEntropy(Ns, Nexp, q, Tree, Normalize = TRUE, Correction = "Best", 
  CheckArguments = TRUE)

Arguments

Ps
The probability vector of species of the community.
Pexp
The probability vector of species of the metacommunity.
Ns
A numeric vector containing species abundances of the community.
Nexp
A numeric vector containing species abundances of the metacommunity.
q
A number.
Tree
An object of class hclust or phylog. The tree must be ultrametric.
Normalize
If TRUE (default), the entropy returned by the function is normalized by the height of the tree (it is the weighted average value of the entropy in each slice). If FALSE, it is the unnormalized weighted sum of the results.
Correction
A string containing one of the possible corrections: currently, only "ChaoShen". "Best" is the default value, it is equivalent to "ChaoShen".
CheckArguments
Logical; if TRUE, the function arguments are verified. Should be set to FALSE to save time when the arguments have been checked elsewhere.

Value

  • A PhyloEntropy object containing entropy values at each cut of the tree.

Details

The phylogenetic entropy is the generalization of HCDT entropy to unequal species distances (Pavoine et al., 2009). Calculation relies on TsallisBeta and PhyloApply. Bias correction requires the number of individuals to estimate sample Coverage. Use bcPhyloBetaEntropy and choose the Correction. Note that beta entropy value is related to alpha entropy (if $q$ is not 1) and cannot be compared accross communities (Jost, 2007). Beta entropy of a community is not meaningful in general, do rather calculate the PhyloDiversity of the metacommunity.

References

Jost (2007), Partitioning diversity into independent alpha and beta components. Ecology 88(10): 2427-2439. 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

TsallisBeta, bcPhyloBetaEntropy, PhyloDiversity

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
  # Probability distribution of the first plot
  Ps1 <- Paracou618.MC$Psi[, 1]
  # Calculate the phylogenetic Shannon beta entropy of the plot
  summary(PhyloBetaEntropy(Ps1, Ps, 1, Paracou618.Taxonomy) -> e)
  plot(e)
  
  # Ns is the vector of abundances of the metacommunity
  Ns <- Paracou618.MC$Ns
  # Abundances in the first plot
  Ns1 <- Paracou618.MC$Nsi[, 1]
  # Calculate the phylogenetic Shannon beta entropy of the plot
  summary(bcPhyloBetaEntropy(Ns1, Ns, 1, Paracou618.Taxonomy, Correction = "Best") -> e)
  plot(e)

Run the code above in your browser using DataLab