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" )
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
# Load example data data("AalborgWWTPs") # Rarecurve amp_rarecurve(AalborgWWTPs, facet_by = "Plant")