View source: R/plot_connected_barplot.R
plot_connected_barplot | R Documentation |
Plot connected barplot
plot_connected_barplot(
population,
group,
connected = TRUE,
bar_width = 0.4,
normalize_to = NULL,
y_value = "percent",
order = FALSE,
colors = c(),
label = FALSE
)
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 |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.