View source: R/amp_otu_network.R
amp_otu_network | R Documentation |
Generates network plot of taxa and samples based on ggnet2.
amp_otu_network(
data,
min_abundance = 0,
color_by = NULL,
tax_aggregate = "Phylum",
tax_add = NULL,
tax_show = 10,
tax_class = NULL,
tax_empty = "best",
normalise = TRUE,
...
)
data |
(required) Data list as loaded with |
min_abundance |
Minimum taxa abundance pr. sample. (default: |
color_by |
A metadata variable to color the samples by. |
tax_aggregate |
The taxonomic level to aggregate the OTUs. (default: |
tax_add |
Additional taxonomic level(s) to display, e.g. |
tax_show |
The number of taxa to show, or a vector of taxa names. (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:
|
normalise |
(logical) Transform the OTU read counts to be in percent per sample. (default: |
... |
Additional arguments passed on to |
See ggnet2
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
amp_load
# Load example data
data("AalborgWWTPs")
# OTU network plot
amp_otu_network(AalborgWWTPs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.