Description Usage Arguments Value Examples
estimatePD
: computes phylogenetic diversity (Hill numbers with q = 0, 1 and 2) with a particular user-specified level of sample size or sample coverage.
1 2 | estimatePD(x, labels, phy, datatype = "abundance", base = "size",
level = NULL, conf = 0.95, digits = 4)
|
x |
a |
labels |
species names for object x |
phy |
a phylog objcet for input phylo-tree |
datatype |
data type of input data: individual-based abundance data ( |
base |
comparison base: sample-size-based ( |
level |
an integer specifying a particular sample size or a number (between 0 and 1) specifying a particular value of sample coverage.
If |
conf |
a positive number < 1 specifying the level of confidence interval, default is 0.95. Remove C.I. by setting conf=NULL. |
digits |
integer indicating the number of decimal places |
a data.frame
of phylogenetic diversity table including the sample size, sample coverage,
method (rarefaction or extrapolation), and diversity estimates with q = 0, 1, and 2 for the user-specified sample size or sample coverage.
1 2 3 4 5 6 7 8 9 | data(bird)
bird.abu <- bird$abun
bird.lab <- rownames(bird$abun)
bird.phy <- ade4::newick2phylog(bird$tre)
estimatePD(bird.abu, bird.lab, bird.phy, "abundance", base="size", level=NULL, conf=NULL)
## Not run:
estimatePD(bird.abu, bird.lab, bird.phy, "abundance", base="size", level=NULL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.