Description Usage Arguments Value Examples
estPD
: Estimate asymptotic phylogenetic diversity with order q = 0, 1, 2.
1 2 |
x |
a vector/matrix/list of species abundances or a matrix of raw incidence table. |
labels |
a vector of species name for input data. |
phy |
a phylogenetic tree with |
q |
a numeric value specifying the diversity order of Hill number. |
datatype |
data type of input data: individual-based abundance data ( |
se |
a logical variable to calculate the bootstrap standard error and conf confidence interval. |
conf |
a positive number < 1 specifying the level of confidence interval, default is 0.95. |
a data.frame with sample size and sample coverage.
1 2 3 4 5 6 7 8 9 10 | # abundance-based example
data(bird)
bird.abu <- bird$abun
bird.lab <- rownames(bird$abun)
bird.phy <- ade4::newick2phylog(bird$tre)
estPD(bird.abu, labels=bird.lab, phy=bird.phy, q=0, datatype="abundance")
# incidence_based example
bird.inc <- bird$inci
estPD(bird.inc, labels=bird.lab, phy=bird.phy, q=0, datatype="incidence_raw", se=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.