View source: R/plot_functions.R
exprUMAP | R Documentation |
Visualize gene expression on UMAP. Wrapper for Nebulosa::plot_density() and scMiko::scExpression.UMAP() functions.
exprUMAP(
object,
feature,
plot.subtitle = NULL,
do.neb = F,
title.size = 10,
slot = "data",
assay = DefaultAssay(object),
reduction = "umap",
size = autoPointSize(ncol(object)),
scale.color = "tomato",
...
)
object |
Seurat object. |
feature |
feature name. |
plot.subtitle |
Plot title. |
do.neb |
Logical to use Nebulosa::plot_density instead of scMiko::scExpression.UMAP. Default is F. |
title.size |
Size of plot title. Default is 10. |
slot |
which slot to pull from? Default is "data". |
assay |
assay to retrieve data from. |
reduction |
reduction name. Default is "umap". |
size |
point size for plots. |
scale.color |
color of scale. Default is "tomato". |
... |
additional parameters passed to scExpression.UMAP (do.neb = F) or plot_density (do.neb = T) |
ggplot handle
gg.plot <- exprUMAP(object = so, feature = "Prrx1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.