Description Usage Arguments Value References Examples
Function PhdObs
computes empirical or observed phylogenetic diversity (PD) and phylogenetic Hill
numbers (meanPD, mean phylogenetic diversity) for specified/default order q
and reference
time specified in the argument reftime
. See Chao et al. (2010) for details of PD and meanPD.
1 2 3 4 5 6 7 8 9 10 11 |
data |
a matrix/data.frame of species abundances (for abundance data) or species-by-site incidence raw matrix/data.frame (for incidence data).
See the function |
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: |
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 table of empirical (observed) phylogenetic diversity (type = "PD"
) or phylogenetic Hill number (type= "meanPD"
)
for specified/default order q and reference time.
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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Datatype: abundance data
data(data.abu)
data <- data.abu$data
tree <- data.abu$tree
out <- PhdObs(data = data, datatype = "abundance", tree = tree,
q = seq(0, 2, by = 0.25))
out
# Datatype: incidence_raw data
data(data.inc)
data <- data.inc$data
tree <- data.inc$tree
nT <- data.inc$nT
out <- PhdObs(data = data, nT = nT, datatype = "incidence_raw",
tree = tree, q = seq(0, 2, by = 0.25))
out
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.