Learn R Programming

pctax (version 0.1.3)

a_diversity: Calculate a_diversity of otutab

Description

Calculate a_diversity of otutab

Usage

a_diversity(otutab, ...)

# S3 method for data.frame a_diversity( otutab, method = c("richness", "shannon"), tree = NULL, digits = 4, ... )

# S3 method for pc_otu a_diversity(otutab, method = "all", tbl = "otutab", ...)

# S3 method for numeric a_diversity(otutab, ...)

Value

a a_res object

Arguments

otutab

numeric

...

pass to a_diversity.data.frame

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

Examples

Run this code
data(otutab, package = "pcutils")
a_diversity(otutab) -> a_res
plot(a_res, "Group", metadata)

Run the code above in your browser using DataLab