qc_stacked_barplot: Generate a stacked barplot for two categorical metrics

Description Usage Arguments Value

Description

The metric used for category_x will generate bars as columns on the x-axis. The bar will be split vertically based on category_y.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
qc_stacked_barplot(
  meta,
  category_x = "batch_id",
  name_x = "Batch ID",
  category_y = "well_id",
  category_name = "Well ID",
  colorset_y = "varibow",
  name_y = "N Cells",
  as_fraction = FALSE
)

Arguments

meta

A data.frame containing metadata

category_x

A character object specifying the metadata to use for splitting in the y-direction

name_x

A character object specifying a name to display on the x-axis

category_name

A character object specifying a name to display for the colors

colorset_y

A colorset to use as fills for category_y. Currently supported: "rainbow" or "varibow". Default is "varibow"

name_y

A character object specifying a name for the y-axis.

as_fraction

A logical object specifying whether or not to display the stacked bars as fractions of the total count for each category_x. Default is FALSE.

Value

a ggplot2 plot object


AllenInstitute/BarMixer documentation built on Dec. 17, 2021, 8:42 a.m.