seurat_dimred_cluster_labels: Make labels for groups in DimRed plots

View source: R/dimred_labels.R

seurat_dimred_cluster_labelsR Documentation

Make labels for groups in DimRed plots

Description

Assign labels to positions in reduced dimensional space. Can be used to label clusters by other meta.data than their coloring.

Usage

seurat_dimred_cluster_labels(
  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

Value

tibble of labels and their positions


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