View source: R/visualization.R
PolyDimPlot | R Documentation |
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
)
object |
Seurat object |
group.by |
A grouping variable present in the metadata. Default is to use the groupings present
in the current cell identities ( |
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 |
Returns a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.