umapNamedClusters: Plot and Save UMAP without legend

View source: R/Seurat.utils.less.used.R

umapNamedClustersR Documentation

Plot and Save UMAP without legend

Description

Generates a UMAP plot colored by a specified metadata column and saves the plot to a file.

Usage

umapNamedClusters(
  obj = combined.obj,
  metaD.colname = metaD.colname.labeled,
  ext = "png",
  ...
)

Arguments

obj

Seurat object to be visualized; Default: combined.obj.

metaD.colname

Metadata column name to color the UMAP by; Default: 'metaD.colname.labeled'.

ext

File extension for the saved plot, supports 'png', 'pdf', etc.; Default: 'png'.

...

Additional arguments passed to Seurat's DimPlot.

Value

Displays a UMAP plot and saves it to the current working directory.

Examples

## Not run: 
if (interactive()) {
  umapNamedClusters(obj = combined.obj, metaD.colname = "metaD.colname.labeled")
}

## End(Not run)


vertesy/Seurat.utils documentation built on Dec. 4, 2024, 5:20 p.m.