Learn R Programming

Seurat (version 4.3.0.1)

PolyDimPlot: Polygon DimPlot

Description

Plot cells as polygons, rather than single points. Color cells by identity, or a categorical variable in metadata

Usage

PolyDimPlot(
  object,
  group.by = NULL,
  cells = NULL,
  poly.data = "spatial",
  flip.coords = FALSE
)

Value

Returns a ggplot object

Arguments

object

Seurat object

group.by

A grouping variable present in the metadata. Default is to use the groupings present in the current cell identities (Idents(object = object))

cells

Vector of cells to plot (default is all cells)

poly.data

Name of the polygon dataframe in the misc slot

flip.coords

Flip x and y coordinates