add_cluster_numbers: Add cluster numbers to annotation

View source: R/plot_scseq.R

add_cluster_numbersR Documentation

Add cluster numbers to annotation

Description

Adds cluster number to non-numeric cluster names. E.g. if annot = c('Monocytes', '2') then annot = c('1: Monocytes', '2') is returned

Usage

add_cluster_numbers(annot, pad_left = FALSE)

Arguments

annot

Character vector of cluster names

pad_left

Should cluster numbers be padded on the left? Used to align numbers for violin plot.

Value

annot with cluster numbers pre-pended to non-numeric values.

Examples


annot <- c('Monocytes', '2')
add_cluster_numbers(annot)


hms-dbmi/drugseqr documentation built on Feb. 15, 2024, 10:38 p.m.