plot_connected_barplot: Plot connected barplot

View source: R/plot_connected_barplot.R

plot_connected_barplotR Documentation

Plot connected barplot

Description

Plot connected barplot

Usage

plot_connected_barplot(
  population,
  group,
  connected = TRUE,
  bar_width = 0.4,
  normalize_to = NULL,
  y_value = "percent",
  order = FALSE,
  colors = c(),
  label = FALSE
)

Arguments

population

vector containing population/cluster assignment (y-axis)

group

vector containing group or sample assignment (x-axis)

connected

Should bars from same group be connected?

bar_width

Relative width of bars (integer between 0 and 1)

normalize_to

Data frame containing normalization factor (i.e. total cell count from sample) as first column and group in the second column.

y_value

what statistic to plot ("percent" or "count")

order

should populations be ordered by total count (across groups)

colors

(named) vector of colors for populations

Value

ggplot object


Terkild/scutility documentation built on Jan. 16, 2025, 5:28 p.m.