plot_gene: Plot gene expression on to tSNE or umap

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plot gene expression on to tSNE or umap

Usage

1
plot_gene(expr_mat, metadata, genes, cell_col = NULL, ...)

Arguments

expr_mat

input single cell matrix

metadata

data.frame with tSNE or umap coordinates

genes

gene(s) to color tSNE or umap

cell_col

column name in metadata containing cell ids, defaults to rownames if not supplied

...

additional arguments passed to [clustifyr::plot_dims()]

Value

list of ggplot object, cells projected by dr, colored by gene expression

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
genes <- c(
    "RP11-314N13.3",
    "ARF4"
)

plot_gene(
    expr_mat = pbmc_matrix_small,
    metadata = tibble::rownames_to_column(pbmc_meta, "rn"),
    genes = genes,
    cell_col = "rn"
)

clustifyr documentation built on Nov. 8, 2020, 5:32 p.m.