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"
)
(required) Data list as loaded with amp_load
.
Step size for the curves. Lower is prettier but takes more time to generate. (default: 1000
)
Color curves by a variable in the metadata. (default: NULL
)
Split the plot into subplots based on a variable in the metadata. (default: NULL
)
If facet_by
is set, should the axis scales of each subplot be fixed (fixed
), free ("free"
), or free in one dimension ("free_x"
or "free_y"
)? (default: "fixed"
)
A ggplot2 object.
# Load example data
data("AalborgWWTPs")
# Rarecurve
amp_rarecurve(AalborgWWTPs, facet_by = "Plant")