plotStackedBarPlot: Plot stacked bar plot

plotStackedBarPlotR Documentation

Plot stacked bar plot

Description

Plot stacked bar plot

Usage

plotStackedBarPlot(object, ...)

## S4 method for signature 'SingleCellExperiment'
plotStackedBarPlot(
  object,
  absolute = FALSE,
  interestingGroups = NULL,
  labels = NULL
)

Arguments

object

Object.

absolute

logical(1). Return absolute (TRUE) or relative/proportional (FALSE) cell count.

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 2022-03-05.

Examples

data(SingleCellExperiment_Seurat, package = "AcidTest")

## SingleCellExperiment ====
object <- SingleCellExperiment_Seurat
plotStackedBarPlot(object)

acidgenomics/acidplots documentation built on April 1, 2024, 7:37 p.m.