View source: R/amp_frequency.R
amp_frequency | R Documentation |
Generates a barplot with frequency vs read abundance.
amp_frequency(
data,
group_by = "Sample",
tax_class = NULL,
tax_empty = "best",
tax_aggregate = "OTU",
weight = TRUE,
normalise = TRUE,
detailed_output = FALSE
)
data |
(required) Data list as loaded with |
group_by |
Group the samples by a variable in the metadata. (default: |
tax_class |
Converts a specific phylum to class level instead, e.g. |
tax_empty |
How to show OTUs without taxonomic information. One of the following:
|
tax_aggregate |
The taxonomic level to aggregate the OTUs. (default: |
weight |
(logical) Weight the frequency by abundance. (default: |
normalise |
(logical) Transform the OTU read counts to be in percent per sample. (default: |
detailed_output |
(logical) Return additional details or not. If |
A ggplot2 object. If detailed_output = TRUE
a list with a ggplot2 object and additional data.
See ?amp_filter_samples
or the ampvis2 FAQ.
Kasper Skytte Andersen ksa@bio.aau.dk
Mads Albertsen MadsAlbertsen85@gmail.com
Saunders, Aaron M; Albertsen, Mads; Vollertsen, Jes; Nielsen, Per H (2016): The activated sludge ecosystem contains a core community of abundant organisms, ISME Journal 10, 11-20. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1038/ismej.2015.117")}
amp_load
, amp_core
, amp_venn
# Load example data
data("AalborgWWTPs")
# Frequency plot
amp_frequency(AalborgWWTPs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.