alpha_diversity_measures: Alpha Diversity Measures

Description Usage Arguments Value See Also Examples

View source: R/alpha-diversity.R

Description

This function generates various alpha diversity measures include Shannon, Fisher, Coverage, GiniSimpson, and InverseSimpson.

Usage

1
alpha_diversity_measures(obj, group = "TreatmentGroup")

Arguments

obj

An object to be converted to a Taxmap object with create_taxmap.

group

The "TreatmentGroup" or similar grouping from your metadata to denote sample groups, Default: 'TreatmentGroup'

Value

Returns a list of alpha diversity measures with metadata.

See Also

View alpha,meta to learn more about generating diversity measures with the microbiome package.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
if (interactive()) {
  library(MicrobiomeR)
  data <- analyzed_silva
  measures <- alpha_diversity_measures(data)
  measures$Shannon
}

## End(Not run)

vallenderlab/MicrobiomeR documentation built on Aug. 30, 2019, 11:24 p.m.