plotBarcodeBubble
plotBarcodeBubble.Rd
Generate proportional bubbleplots from raw count object with barcodes labelled above a specified threshold
Usage
plotBarcodeBubble(
dgeObject,
title = "Proportional Bubble Plot",
group = NULL,
displaySamples = NULL,
displayBarcodes = NULL,
proportionCutoff = 10,
colorDominant = FALSE,
labelBarcodes = TRUE,
orderBarcodes = TRUE,
legend = TRUE
)
Arguments
- dgeObject
DGEList object with barcode counts.
- title
Plot title (string). Default = `Proportional Bubble Plot`.
- group
Optional, column name in sample metadata to group samples by (string).
- displaySamples
Optional, vector of sample names to display, preserves the order of vector (vector of strings).
- displayBarcodes
Optional, vector of barcodes to display (vector of strings).
- proportionCutoff
Barcodes represented at a percentage within any sample above this threshold will be labelled (decimal). Default = `10`.
- colorDominant
Only color clones with frequency above `proportionCutoff` and others colored grey (boolean). Default = `FALSE`.
- labelBarcodes
Label barcodes with a proportion larger than `proportionCutoff` in any sample (boolean). Default = `TRUE`.
- orderBarcodes
Order barcodes alphanumerical (boolean). For SPLINTR that represents abundance in original barcode library. Default `TRUE`.
- legend
Show a legend of bubble sizes (boolean). Default = `TRUE`.
Examples
data(test.dge)
plotBarcodeBubble(test.dge, proportionCutoff = 10)
#> Warning: Vectorized input to `element_text()` is not officially supported.
#> ℹ Results may be unexpected or may change in future versions of ggplot2.