scDimPlot | R Documentation |
DimPlot with rasterized point for single-cell visualization
scDimPlot(
object = NULL,
cols = NULL,
pt.size = NULL,
reduction = NULL,
split.by = NULL,
label = TRUE,
title = NULL,
ncol = NULL,
raster = TRUE
)
object |
Seurat object |
cols |
Colors to plot, use ggplot2's default colors by default. We include a pallete called 'sc' which consists of 36 colors |
pt.size |
Adjust point size to plot, default pt.size=0.5 |
reduction |
Which dimensionality reduction to use |
split.by |
Name of a metadata column to split plot by |
label |
Whether to label the clusters |
title |
Title of the plot |
ncol |
Number of columns for display the plots |
raster |
Convert points to raster format, default is TRUE |
A ggplot object
Inspired by Stuart and Butler et al, Cell (2019)
DimPlot
data("H3N2_small")
scDimPlot(object = H3N2_small,
reduction = "umap",
cols = NULL,
split.by = "sample",
ncol = 2,
pt.size = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.