hotplot: Univariate Bimodality Plot

Description Usage Arguments Value Author(s) References Examples

View source: R/hotplot.R

Description

Coloured bimodality plot.

Usage

1
2
3
4
5
6
7
8
hotplot(
  x,
  taxon,
  tipping.point = NULL,
  lims = NULL,
  shift = 0.001,
  log10 = TRUE
)

Arguments

x

phyloseq-class object

taxon

Taxonomic group to visualize.

tipping.point

Indicate critical point for abundance variations to be highlighted.

lims

Optional. Figure X axis limits.

shift

Small constant to avoid problems with zeroes in log10

log10

Use log10 abundances for the OTU table and tipping point

Value

ggplot object

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
3
4
5
6
7
data(atlas1006)
pseq <- subset_samples(atlas1006, DNA_extraction_method == 'r')
pseq <- transform(pseq, 'compositional')
# Set a tipping point manually
tipp <- .3/100 # .3 percent relative abundance
# Bimodality is often best visible at log10 relative abundances
p <- hotplot(pseq, 'Dialister', tipping.point=tipp, log10=TRUE)

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.