View source: R/visualization.R
barplot_cluster_abundance | R Documentation |
Plot Abundance Comparison Across Sample Clusters
barplot_cluster_abundance(x, ...) ## S3 method for class 'data.frame' barplot_cluster_abundance(df, position = c("stack", "dodge")) ## S3 method for class 'SingleCellExperiment' barplot_cluster_abundance(sce, ...) ## S3 method for class 'Seurat' barplot_cluster_abundance(srt, ...)
... |
Args passed to |
df |
Data frame to plot, must contains columns:
|
position |
Specify the way to display the bar chart |
sce |
A SingleCellExperiment object. The following
cell metadata (
|
srt |
Seurat object. The |
A ggplot2 object
data.frame
: Plot abundance comparison across
sample clusters from a formatted data.frame
SingleCellExperiment
: Calculate the proportion of cells from
object SingleCellExperiment
Seurat
: Calculate the proportion of cells from
Seurat object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.