powered by
plotAbundance plots the results from estimating the complete clonal relative abundance distribution. The distribution is plotted as a log rank abundance distribution.
plotAbundance
plotAbundance(data, colors = NULL, main_title = "Rank Abundance", legend_title = NULL, xlim = NULL, ylim = NULL, silent = FALSE, ...)
data.frame returned by estimateAbundance.
named character vector whose names are values in the group column of data and whose values are colors to assign to those group names.
group
data
string specifying the plot title.
string specifying the legend title.
numeric vector of two values specifying the c(lower, upper) x-axis limits.
c(lower, upper)
numeric vector of two values specifying the c(lower, upper) y-axis limits.
if TRUE do not draw the plot and just return the ggplot2 object; if FALSE draw the plot.
TRUE
FALSE
additional arguments to pass to ggplot2::theme.
A ggplot object defining the plot.
ggplot
See estimateAbundance for generating the input abundance distribution. Plotting is performed with ggplot.
# Estimate abundance by sample and plot abund <- estimateAbundance(ExampleDb, "SAMPLE", nboot=100) plotAbundance(abund)
Run the code above in your browser using DataLab