View source: R/amp_rarecurve.R
amp_rarecurve | R Documentation |
Generates a rarefaction curve (number of reads vs number of observed OTUs) for each sample.
amp_rarecurve(
data,
stepsize = 1000,
color_by = NULL,
facet_by = NULL,
facet_scales = "fixed"
)
amp_rarefaction_curve(
data,
stepsize = 1000,
color_by = NULL,
facet_by = NULL,
facet_scales = "fixed"
)
data |
(required) Data list as loaded with |
stepsize |
Step size for the curves. Lower is prettier but takes more time to generate. (default: |
color_by |
Color curves by a variable in the metadata. (default: |
facet_by |
Split the plot into subplots based on a variable in the metadata. (default: |
facet_scales |
If |
A ggplot2 object.
Kasper Skytte Andersen ksa@bio.aau.dk
Mads Albertsen MadsAlbertsen85@gmail.com
amp_load
, amp_octave
# Load example data
data("AalborgWWTPs")
# Rarecurve
amp_rarecurve(AalborgWWTPs, facet_by = "Plant")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.