ClusterSizeBarplot: Make a Barplot for cluster size

Description Usage Arguments Value Examples

View source: R/clusterviz.R

Description

Make a Barplot for cluster size

Usage

1
ClusterSizeBarplot(ident, bar_col = "blue", label_number = TRUE)

Arguments

ident

a named factor vector. names are the cell names, the values are the cluster id.

bar_col

color for the bar. Default is blue.

label_number

whether or not put cell number in each cluster on top of the bar

Value

a ggplot2 bar graph object

Examples

1
2
data(pbmc_small)
ClusterSizeBarplot(Idents(pbmc_small))

crazyhottommy/scclusteval documentation built on Aug. 5, 2021, 3:20 p.m.