Skip to contents

Draws box plot of data from indicated TapestriExperiment assay slot. This is especially useful for visualizing altExp count data, such as counts from probes on chrY or barcode probe counts.

Usage

assayBoxPlot(
  TapestriExperiment,
  alt.exp = NULL,
  assay = NULL,
  log.y = TRUE,
  split.features = FALSE,
  split.x.by = NULL,
  split.y.by = NULL
)

Arguments

TapestriExperiment

TapestriExperiment object

alt.exp

Character, altExp to plot. NULL (default) uses the top-level experiment in TapestriExperiment.

assay

Character, assay to plot. NULL (default) selects first assay listed TapestriExperiment.

log.y

Logical, if TRUE, scales data using log1p(). Default TRUE.

split.features

Logical, if TRUE, splits plot by rowData features if slot has more than one row feature/probe. Default FALSE.

split.x.by

Character, colData column to use for X-axis categories. Default NULL.

split.y.by

Character, colData column to use for Y-axis splitting/faceting. Default NULL.

Value

ggplot object, box plot

Examples

tap.object <- newTapestriExperimentExample() # example TapestriExperiment object
#>  Moving gRNA probe  to `altExp` slot "grnaCounts".
#>  Moving barcode probe  to `altExp` slot "barcodeCounts".
#>  Moving chrY probe(s) probe_231, probe_232, probe_233, probe_234, probe_235, probe_236, probe_237, probe_238, probe_239, and probe_240 to `altExp` slot "chrYCounts".
assayBoxPlot(tap.object, alt.exp = "chrYCounts", split.features = TRUE, split.x.by = "test.cluster")