View source: R/plot_connected_barplot.R
seurat_plot_connected_barplot | R Documentation |
Plot connected barplot from seurat object
seurat_plot_connected_barplot(
object,
group.by = "ident",
split.by,
wrap.by = NULL,
normalize_to = NULL,
cells = c(),
combine = TRUE,
wrap_add = 0.5,
...
)
object |
Seurat object |
group.by |
Meta data column containing population/cluster assignment (y-axis) |
split.by |
Meta data column containing group or sample assignment (x-axis) |
wrap.by |
Meta data column to split into multiple independent plots (i.e. patient or tissue information) |
normalize_to |
Data frame containing normalization factor (i.e. total cell count from sample) as first column, split.to (and wrap.by) in following columns. Important that colnames match split.to and wrap.by names |
cells |
Vector of rows or cell barcodes to be included in plot. |
combine |
Boolean of whether multiple plots (when wrap.by is set) should be combined into a single plot (using cowplot) |
wrap_add |
Integer of how much width should be allocated to y-axis text relative to the with of a bar (for combining plots) |
ggplot object or list of ggplot objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.