spreadplot {microbiome} | R Documentation

## Abundance Spread Plot

### Description

Visualize abundance spread for OTUs

### Usage

    spreadplot(x, trunc = 0.001/100, alpha = 0.15, width = 0.35)

### Arguments

`x` | `phyloseq-class` object; or a data.frame with fields "otu" (otu name); "sample" (sample name); and "abundance" (otu abundance in the given sample)
`trunc` | Truncate abundances lower than this to zero
`alpha` | Alpha level for point transparency
`width` | Width for point spread

### Value

ggplot2 object

### Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

### References

See citation('microbiome')

### Examples

    data(dietswap)
    p <- spreadplot(transform(dietswap, "compositional"))

[Package microbiome version 1.14.0 Index]