plot_mv: Plot Mean Variance OTU in order to evaluate overdispersion

Description Usage Arguments Details Value References See Also Examples

View source: R/plot_functions.R

Description

The mean and variance (var) of physeq OTU table are computed. Overdispersion can be visually assessed by the generated plot. The putative linear relation between mean and variance is added with abline to guide the analysis.

Usage

1
plot_mv(physeq, log = TRUE, title = NULL)

Arguments

physeq

phyloseq-class

log

A logical stating whether to apply log1p transform to both axis.

title

A title to the mean-variance plot

Details

The log1p transform was chosen to limit NaN values with null values.

Value

A ggplot object

References

Modified from Thorsen and Brejnrod et al. (2016).

See Also

taxa_stats

Examples

1
2
3
4
require(phyloseq)
data(GlobalPatterns)
(mv1<-plot_mv(GlobalPatterns, title = "Mean-Variance Plot with log-transform"))
mv1.nolog<-plot_mv(GlobalPatterns,log = FALSE, title = "Mean-Variance Plot without log-transform")

cpauvert/psadd documentation built on Nov. 22, 2020, 9:19 a.m.