Description Usage Arguments Examples
Plots DNA concentration as a function of experimental conditions. This function is intended as a convenient exploration of potential covariation between DNA concentrations and conditions that could influence the community composition, as this could lead to higher rates of false-positive contaminant identifications.
1 | plot_condition(seqtab, condition, conc, batch = NULL, log = FALSE)
|
seqtab |
(Required). |
condition |
(Required). |
conc |
(Required). |
batch |
(Optional). |
log |
(Optional). |
1 2 3 4 5 6 | # MUC is a phyloseq object, MUC.conc is the vector of sample concentrations
MUC <- readRDS(system.file("extdata", "MUClite.rds", package="decontam"))
MUC.conc <- readRDS(system.file("extdata", "MUCconc.rds", package="decontam"))
plot_condition(MUC, "Habitat", MUC.conc)
# Plot against random quantitative variable
plot_condition(MUC, runif(length(MUC.conc)), MUC.conc, log=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.