a_diversity | R Documentation |
Calculate a_diversity of otutab
a_diversity(otutab, ...)
## S3 method for class 'data.frame'
a_diversity(
otutab,
method = c("richness", "shannon"),
tree = NULL,
digits = 4,
...
)
## S3 method for class 'pc_otu'
a_diversity(otutab, method = "all", tbl = "otutab", ...)
## S3 method for class 'numeric'
a_diversity(otutab, ...)
otutab |
numeric |
... |
pass to |
method |
one of "all","richness","chao1","ace","gc","shannon","simpson","pd","pielou" |
tree |
a iphylo object match the rownames of otutab |
digits |
maintance how many digits |
tbl |
which table |
a a_res object
data(otutab, package = "pcutils")
a_diversity(otutab) -> a_res
plot(a_res, "Group", metadata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.