alr_trans: The additive log-ratio transformation

View source: R/alr_trans.R

alr_transR Documentation

The additive log-ratio transformation

Description

The additive log-ratio transformation

Usage

alr_trans(eBay.comps)

Arguments

eBay.comps

the estimated microbial compositions by empirical Bayes.

Value

Returns the alr transfromation of microbial compositions.

Examples

library(phyloseq)
otu_tab <- t(combo.phyloseq.obj@otu_table@.Data)
tree <- phy_tree(combo.phyloseq.obj)
eBay.comps <- eBay_comps(otu_tab,prior = "Dirichlet", tree=NULL)
eBay.comps.alr <- alr_trans(eBay.comps)

liudoubletian/phyloMDA documentation built on April 28, 2022, 6:51 p.m.