qc_aligned_barplot: Generate a baseline-aligned barplot for two categorical...

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. Each group in category_y will be aligned to make them easier to compare.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
qc_aligned_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",
  padding = 0.2
)

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.

padding

A numeric object specifying the fraction of the total vertical space to use for separating category_y groups. Default is 0.2.

Value

a ggplot2 plot object


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