Description Usage Arguments Value References Examples
Function iNEXTPD
computes phylogenetic diversity estimates for rarefied samples and extrapolated samples
along with confidence intervals and related coverage estimates based on Chao et al.’s (2010) phylogenetic
diversity (PD) and mean phylogenetic diversity (meanPD). See Chao et al. (2010, 2015, 2016) and
Hsieh and Chao (2017) for pertinent background and methodologies.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
data |
a matrix/data.frame of species abundances (for abundance data) or species-by-site incidence raw matrix/data.frame (for incidence data). |
nT |
needed only when |
datatype |
data type of input data: individual-based abundance data ( |
tree |
a phylo object describing the phylogenetic tree in Newick format for all observed species in the pooled assemblage. |
q |
a nonnegative value or sequence specifying the diversity order. Default is |
reftime |
a positive value or sequence specifying the reference times for diversity computation. If |
type |
desired diversity type: |
endpoint |
a positive integer specifying the endpoint for the rarefaction and extrapolation range.
If |
knots |
a positive integer specifying the number of equally-spaced knots between 1 and the |
size |
a sequence of positive integers specifying the sample sizes for which PD or meanPD estimates will be calculated.
If |
nboot |
a positive integer specifying the number of bootstrap replications when assessing sampling uncertainty and constructing confidence intervals. Enter 0 to skip the bootstrap procedures. Default is 50. |
conf |
a positive number < 1 specifying the level of confidence interval. Default is 0.95. |
Returns a list containing two tables:
$size_based
: size-based PD or meanPD estimates along with their confidence intervals
(if nboot > 0
) and relevant statistics information.
$coverage_based
: coverage-based diversity estimates along with confidence intervals
(if nboot > 0
) and relevant statistics information.
Chao, A., Chiu C.-H. and Jost, L. (2010). Phylogenetic diversity measures based on Hill numbers. Philosophical Transactions of the Royal Society B., 365, 3599-3609.
Chao, A., Chiu, C.-H., Hsieh, T. C., Davis, T., Nipperess, D., and Faith, D. (2015). Rarefaction and extrapolation of phylogenetic diversity. Methods in Ecology and Evolution, 6, 380-388.
Chao, A., Chiu C.-H. and Jost L. (2016). Phylogenetic diversity measures and their decomposition: a framework based on Hill numbers. pp. 141-172 in Pellens R. and Grandcolas P. (eds)
Biodiversity Conservation and Phylogenetic Systematics: Preserving our Evolutionary Heritage in an Extinction Crisis, Springer.
Hsieh, T. C. and Chao, A. (2017). Rarefaction and extrapolation: making fair comparison of abundance-sensitive phylogenetic diversity among multiple assemblages. Systematic Biology, 66, 100-111.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Datatype: abundance data
data(data.abu)
data <- data.abu$data
tree <- data.abu$tree
out <- iNEXTPD(data = data, tree = tree, datatype = "abundance", q = c(0, 1, 2), nboot = 30)
out
# Datatype: incidence_raw data
data(data.inc)
data <- data.inc$data
tree <- data.inc$tree
nT <- data.inc$nT
out <- iNEXTPD(data = data, nT = nT, datatype = "incidence_raw", tree = tree,
q = c(0, 1, 2))
out
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.