Plot cells as polygons, rather than single points. Color cells by identity, or a categorical variable in metadata
PolyDimPlot(object, group.by = NULL, cells = NULL,
poly.data = "spatial", flip.coords = FALSE)
Seurat object
A grouping variable present in the metadata. Default is to use the groupings present
in the current cell identities (Idents(object = object)
)
Vector of cells to plot (default is all cells)
Name of the polygon dataframe in the misc slot
Flip x and y coordinates
Returns a ggplot object