Partitions the diversity of a metacommunity into alpha and beta components.
DivPart(q = 1, MC, Biased = TRUE, Correction = "Best", Tree = NULL,
Normalize = TRUE, Z = NULL, CheckArguments = TRUE)
is.DivPart(x)
# S3 method for DivPart
plot(x, …)
# S3 method for DivPart
summary(object, …)
A number: the order of diversity. Default is 1.
A MetaCommunity
object.
Logical; if FALSE
, a bias correction is appplied.
A string containing one of the possible corrections.
The correction must be accepted by AlphaEntropy
, BetaEntropy
and GammaEntropy
. "Best"
is the default value.
If TRUE
(default), diversity is not affected by the height of the tree.
If FALSE
, diversity is proportional to the height of the tree.
A relatedness matrix, i.e. a square matrix whose terms are all positive, strictly positive on the diagonal. Generally, the matrix is a similarity matrix, i.e. the diagonal terms equal 1 and other terms are between 0 and 1.
Logical; if TRUE
, the function arguments are verified. Should be set to FALSE
to save time when the arguments have been checked elsewhere.
An object to be tested or plotted.
A MCdiversity
object to be summarized.
Additional arguments to be passed to the generic methods.
A DivPart
object. It is a list:
The name of the MetaCommunity
object containing inventory data.
The value of q
.
Logical. If FALSE
, bias corrected values of diversity have been computed.
The estimation bias correction used to calculate diversity.
The method used to calculate entropy ("HCDT", "Similarity-based").
The phylogenetic or functional tree used to calculate phylodiversity.
Logical. Indicates whether phylodiversity is normalized or proportional to the height of the tree.
The matrix used to calculate similarity-based entropy.
The alpha diversity of communities.
The beta diversity of communities.
The gamma diversity of the metacommunity.
A vector containing the alpha diversity of each community.
The alpha entropy of communities.
The beta entropy of communities.
The gamma entropy of the metacommunity.
A vector containing the alpha entropy of each community.
DivPart
partitions the diversity of the metacommunity into alpha and beta components. It supports estimation-bias correction.
If Tree
is provided, the phylogenetic diversity is calculated else if Z
is not NULL
, then similarity-based entropy is calculated.
Beta diversity/entropy is calculated from Gamma and Alpha when bias correction is required, so community values are not available.
Marcon, E., Herault, B., Baraloto, C. and Lang, G. (2012). The Decomposition of Shannon's Entropy and a Confidence Interval for Beta Diversity. Oikos 121(4): 516-522.
Marcon, E., Scotti, I., Herault, B., Rossi, V. and Lang, G. (2014). Generalization of the partitioning of Shannon diversity. PLOS One 9(3): e90289.
Marcon, E., Herault, B. (2015). Decomposing Phylodiversity. Methods in Ecology and Evolution 6(3): 333-339.
Marcon, E., Zhang, Z. and Herault, B. (2014). The decomposition of similarity-based diversity and its bias correction. HAL hal-00989454(version 3).
# NOT RUN {
# Load Paracou data (number of trees per species in two 1-ha plot of a tropical forest)
data(Paracou618)
# Estimate Shannon diversity.
summary(DivPart(q = 1, Paracou618.MC, Biased = FALSE) -> dp)
plot(dp)
# }
Run the code above in your browser using DataLab