Plot cell counts

plotCellCounts(object, ...)

# S4 method for SingleCellExperiment
plotCellCounts(object,
  interestingGroups = NULL, fill = getOption(x = "acid.fill.discrete",
  default = acidplots::scale_fill_synesthesia_d()),
  title = "Cell counts")

Arguments

object

Object.

interestingGroups

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

fill

ggproto/ScaleDiscrete. Desired ggplot2 fill scale. Must supply discrete values. When set to NULL, the default ggplot2 color palette will be used. If manual color definitions are desired, we recommend using ggplot2::scale_fill_manual().

To set the discrete fill palette globally, use:

options(acid.fill.discrete = ggplot2::scale_fill_viridis_d())
title

character(1). Title.

...

Additional arguments.

Value

ggplot.

Note

Updated 2019-08-19.

Examples

data(SingleCellExperiment, package = "acidtest") ## SingleCellExperiment ==== object <- SingleCellExperiment plotCellCounts(object)