preve_abun_dis_plot: preve_abun_dis_plot

View source: R/preve_abun_dis_plot.R

preve_abun_dis_plotR Documentation

preve_abun_dis_plot

Description

Plots average occupancy and average relative abundance between core and non-core otu.

Usage

preve_abun_dis_plot(
  otu,
  sample,
  mini_abun,
  threshold,
  sample_name,
  sample_group,
  core_col,
  noncore_col
)

Arguments

otu

a community count data matrix with samples in rows and OTUs/taxa in column,

sample

a sample information data.frame. The rownames must match the sample names in the otu,

mini_abun

a value indicating whether the otu is present,

threshold

a value indicating the final percent increase in beta-diversity,

sample_name

the name of a column that containing the sample name,

sample_group

the name of a column that containing the sample type/group,

core_col

the color of the core,

noncore_col

the color of the non-core,

Details

Plots average occupancy and average relative abundance between core and non-core otu.

Value

Two density plots showing the average occupancy and average relative abundance between core and non-core otu.

Examples

 preve_abun_dis_plot(otu, sample, mini_abun=0, threshold=0.02, sample_name, sample_group, core_col = "deeppink4", noncore_col = "darkseagreen3")

lindan1128/coreMicrobiome documentation built on May 5, 2022, 8:24 p.m.