View source: R/plotProjection.R
plotProjection | R Documentation |
Plot 2D projection (i.e. UMAP, tSNE) for millions of cells efficiently
plotProjection(
sce,
type,
annotation,
pointsize = 0,
pixels = c(512, 512),
legend.position = "none",
text = TRUE,
order
)
sce |
|
type |
field in |
annotation |
column in |
pointsize |
Radius of rasterized point. Use |
pixels |
Vector with X and Y resolution of the raster, default |
legend.position |
legend.position: the position of legends ("none", "left", "right", "bottom", "top", or two-element numeric vector) |
text |
show |
order |
specify order of levels for |
Uses scattermore::geom_scattermore()
to plot millions of points efficiently
ggplot2 plot of the projection
library(muscat)
library(SingleCellExperiment)
data(example_sce)
plotProjection(example_sce, "TSNE", "cluster_id", 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.