suPlotVariableFeatures: suPlotVariableFeatures for Single Seurat Object

View source: R/Seurat.Utils.Visualization.R

suPlotVariableFeaturesR Documentation

suPlotVariableFeatures for Single Seurat Object

Description

Generates a Variable Feature Plot for a specified Seurat object, labels points with the top 20 variable genes, and saves the plot to a PDF file.

Usage

suPlotVariableFeatures(
  obj = combined.obj,
  NrVarGenes = 15,
  repel = TRUE,
  plotWidth = 7,
  plotHeight = 5,
  save = TRUE,
  assay = DefaultAssay(obj),
  suffix = NULL,
  ...
)

Arguments

obj

A single Seurat object.

NrVarGenes

A vector containing the top 20 variable genes for the Seurat object.

repel

A logical value indicating whether to repel the labels to avoid overlap. Default: TRUE.

plotWidth

Numeric value specifying the width of the plot when saved. Default: 7.

plotHeight

Numeric value specifying the height of the plot when saved. Default: 5.

save

A logical value indicating whether to save the plot to a PDF file. Default: TRUE.

assay

The assay to use for the plot. Default: DefaultAssay(obj).

suffix

A string suffix to append to the plot filename. Default: NULL.

...

Additional arguments to pass to the Seurat::VariableFeaturePlot function.

Examples

## Not run: 
suPlotVariableFeatures(combined.obj)

## End(Not run)

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