seurat_dimred_labels_add: Add labels to DimPlot with annotation from seurat object

View source: R/dimred_labels.R

seurat_dimred_labels_addR Documentation

Add labels to DimPlot with annotation from seurat object

Description

Wrapper function for calling seurat_dimred_cluster_labels and dimred_labels_add

Usage

seurat_dimred_labels_add(
  object,
  reduction = NULL,
  dims = c(1, 2),
  group.by = "ident",
  FUN = median,
  ...
)

Arguments

object

Seurat object

reduction

Label of reduction object to use (uses the last created reduction by default)

dims

Which dimensions should be used?

group.by

Meta data column to label clusters

FUN

Function called on reduced dimensions to calculate label position

...

Passed on to scutility::dimred_labels_add

Value

list of ggplot2 functions to be added to an existing plot


Terkild/scutility documentation built on Jan. 16, 2025, 5:28 p.m.