Skip to contents

Plot cell counts

Usage

plotCellCounts(object, ...)

# S4 method for SingleCellExperiment
plotCellCounts(
  object,
  assay = 1L,
  interestingGroups = NULL,
  labels = list(title = "Cell counts", subtitle = NULL, x = NULL, y = "cells")
)

Arguments

object

Object.

assay

vector(1). Assay name or index position.

interestingGroups

character. Groups of interest to use for visualization. Corresponds to factors describing the columns of the object.

labels

list. ggplot2 labels. See ggplot2::labs() for details.

...

Additional arguments.

Value

ggplot.

Note

Updated 2023-08-10.

Author

Michael Steinbaugh, Rory Kirchner

Examples

data(SingleCellExperiment_splatter, package = "AcidTest")

## SingleCellExperiment ====
object <- SingleCellExperiment_splatter
plotCellCounts(object)