scDimPlot: scDimPlot

View source: R/scDimPlot.R

scDimPlotR Documentation

scDimPlot

Description

DimPlot with rasterized point for single-cell visualization

Usage

scDimPlot(
  object = NULL,
  cols = NULL,
  pt.size = NULL,
  reduction = NULL,
  split.by = NULL,
  label = TRUE,
  title = NULL,
  ncol = NULL,
  raster = TRUE
)

Arguments

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

Value

A ggplot object

References

Inspired by Stuart and Butler et al, Cell (2019)

See Also

DimPlot

Examples

data("H3N2_small")
scDimPlot(object = H3N2_small,
  reduction = "umap",
  cols = NULL,
  split.by = "sample",
  ncol = 2,
  pt.size = 1
)


ncrna/Yeskit documentation built on Nov. 4, 2024, 10:32 p.m.