plot2D: Generate list of ggplot figures of umap/tsne on the features...

View source: R/figure.R

plot2DR Documentation

Generate list of ggplot figures of umap/tsne on the features If some feature is not in the meta, will have a NULL.

Description

Generate list of ggplot figures of umap/tsne on the features If some feature is not in the meta, will have a NULL.

Usage

plot2D(
  embed,
  meta,
  checkRowName = FALSE,
  names = c("cluster", "tsse", "log10UMI"),
  discretes = c(TRUE, FALSE, FALSE),
  legends = c(FALSE, TRUE, TRUE),
  addLabels = c(TRUE, FALSE, FALSE),
  n = 10000,
  ...
)

Arguments

embed

data.frame cell by (x, y) dim, rownames are cells.

meta

data.frame cell by features, rownames are cells, colnames are features.

checkRowName

bool, default FALSE

names

character vector, features to be draw Default is c("cluster", "tsse", "logumi")

discretes

bool vector, default is c(T, F, F)

legends

bool vector, default is c(F, T, T).

addLabels

bool vectors, default is c(T, F, F).

n

integer, number of down samples, default 10,000

...

parameters ggPoint, but seems no use there.

Value

list of ggplot object


beyondpie/pureRUtils documentation built on Jan. 10, 2023, 3:22 a.m.