explore_zeros {coda4microbiome}R Documentation

explore_zeros

Description

Provides the proportion of zeros for a pair of variables (taxa) in table x and the proportion of samples with zero in both variables. A bar plot with this information is also provided. Results can be stratified by a categorical variable.

Usage

explore_zeros(x, id1, id2, strata = NULL)

Arguments

x

abundance matrix or data frame (rows are samples, columns are variables (taxa))

id1

column number in x for the first taxa

id2

column number in x for the second taxa

strata

stratification variable (default = NULL)

Value

a list with the frequency table and the associated bar plot

Author(s)

M. Calle - T. Susin

Examples


data(HIV, package = "coda4microbiome")

explore_zeros(x_HIV,5,6)

explore_zeros(x_HIV,5,6, strata=y_HIV)



[Package coda4microbiome version 0.2.3 Index]