barVDJ | R Documentation |
barVDJ
creates a barplot using ggplot that shows the
number of reads in the sample and colors the sample in accordance to the
amount of diversity.
barVDJ(x, ...)
## S4 method for signature 'Matrix'
barVDJ(x, title = NULL, legend = FALSE)
## S4 method for signature 'matrix'
barVDJ(x, ...)
## S4 method for signature 'clonoStats'
barVDJ(x, ...)
x |
A |
... |
additional arguments. |
title |
Character vector with an optional title. If FALSE, no title is generated. |
legend |
If TRUE, a legend will be included with the plot. If FALSE, no legend is included in the plot. |
Returns a ggplot
plot with a barplot that shows the
abundance of the clonotypes. The coloring indicates the number of cells
for each clonotype with darker colors being clonotypes with a single cell
(singletons) and lighter colors having more cells with that clonotype
(expanded clonotype).
data('contigs')
x <- clonoStats(contigs)
barVDJ(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.