| plotAbundanceCurve {alakazam} | R Documentation |
plotAbundanceCurve plots the results from estimating the complete clonal
relative abundance distribution. The distribution is plotted as a log rank abundance
distribution.
plotAbundanceCurve(data, colors = NULL, main_title = "Rank Abundance",
legend_title = NULL, xlim = NULL, ylim = NULL,
annotate = c("none", "depth"), silent = FALSE, ...)
data |
AbundanceCurve object returned by estimateAbundance. |
colors |
named character vector whose names are values in the
|
main_title |
string specifying the plot title. |
legend_title |
string specifying the legend title. |
xlim |
numeric vector of two values specifying the
|
ylim |
numeric vector of two values specifying the
|
annotate |
string defining whether to added values to the group labels
of the legend. When |
silent |
if |
... |
additional arguments to pass to ggplot2::theme. |
A ggplot object defining the plot.
See AbundanceCurve for the input object and estimateAbundance for generating the input abundance distribution. Plotting is performed with ggplot.
# Estimate abundance by sample and plot abund <- estimateAbundance(ExampleDb, group="SAMPLE", nboot=100) plotAbundanceCurve(abund, legend_title="Sample")