plotCellLabel: Plot cell labels

Description Usage Arguments Value

View source: R/plots.R

Description

Produce a ggplot object with cells on 2D embedding, colored by given labels of each cell.

Usage

1
2
3
plotCellLabel(X, label, cell.col = NULL, size = 0.5, alpha = 1,
  shape = 16, do.label = T, label.size = 4, label.repel = F,
  label.plot = NULL)

Arguments

X

matrix, 2D embedding of each cell for the plot

label

vector, label for each cell

cell.col

string vector, color bar to use for cell labels, default ggplot default

size

numeric, dot size for each cell, default 0.5

alpha

numeric between 0 to 1, dot opacity for each cell, default 1

do.label

a logical value indicating whether to add text to mark each cell label

label.size

numeric, size of text labels, default 4

label.repel

a logical value indicating whether to repel the labels to avoid overlapping, default False

label.plot

cell labels to add text annotations, default NULL, add text for all labels

Value

a ggplot object


KlugerLab/DAseq documentation built on April 13, 2021, 9:02 p.m.