Plot_Pseudotime_V_Gene: Plot a scatter plot with smoothed lines for selected features

View source: R/Seurat_based.R

Plot_Pseudotime_V_GeneR Documentation

Plot a scatter plot with smoothed lines for selected features

Description

This function creates a scatter plot of a Seurat object, with smoothed lines for each selected feature. The x-axis is defined by the selected SerObjrtByName parameter, and the y-axis is defined by the values of the selected features added to the data frame. The function uses ggplot2 for visualization.

Usage

Plot_Pseudotime_V_Gene(
  SerObj,
  SerObjrtByName,
  Feats = NULL,
  base_size = 20,
  col_vector = col_vector,
  showScatter = T,
  dowsampleScatter = T,
  scatterAlpha = 0.5
)

Arguments

SerObj

A Seurat object to plot.

SerObjrtByName

The name of the variable to use for SerObjrting cells on the x-axis.

Feats

A vector of feature names to plot on the y-axis. Default is NULL, which will plot all features in the object.

base_size

Base size of points and lines. Default is 20.

col_vector

color vector

showScatter

boolean default T to show scatter points

dowsampleScatter

boolean default T to downsample the scatter points

scatterAlpha

alpha value default 0.5 to show scatter points

Value

A ggplot object.

Examples

Plot_Pseudotime_V_Gene(SerObj, "nCount_RNA", c("TNFRSF4", "CD69"))


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.