plot_tipping: Variation Line Plot

Description Usage Arguments Details Value Author(s) References Examples

View source: R/plot_tipping.R

Description

Plot variation in taxon abundance for many subjects.

Usage

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

Arguments

x

phyloseq-class object

taxon

Taxonomic group to visualize.

tipping.point

Optional. 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

xlim

Horizontal axis limits

Details

Assuming the sample_data(x) has 'subject' field and some subjects have multiple time points.

Value

ggplot object

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
3
4
data(atlas1006)
pseq <- subset_samples(atlas1006, DNA_extraction_method == 'r')
pseq <- transform(pseq, 'compositional')
p <- plot_tipping(pseq, 'Dialister', tipping.point=1)

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