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

plotCellScore(X, score, cell.col = c("blue", "white", "red"),
  size = 0.5, alpha = 1, shape = 16)

Arguments

X

matrix, 2D embedding of each cell for the plot

score

numeric vector, a single value to color each cell, continuous

cell.col

string vector, color bar to use for "score", defaul c("blue","white","red")

size

numeric, dot size for each cell, default 0.5

alpha

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

Value

a ggplot object