FeaturePlot_cust: Generate a FeaturePlot_cust which is a scatter plot with gene...

View source: R/Seurat_based.R

FeaturePlot_custR Documentation

Generate a FeaturePlot_cust which is a scatter plot with gene expression as color scale

Description

This function generates a scatter plot of the specified dimensions (features) of a Seurat object, colored by expression values of the specified feature.

Usage

FeaturePlot_cust(
  SerObj,
  dim1,
  dim2,
  pt.size = 1,
  group.by,
  Feat,
  colors = c("white", "gray", "gold", "red", "maroon"),
  base_size = 14
)

Arguments

SerObj

A Seurat object containing the data to plot

dim1

Name of the first feature to plot on the x-axis

dim2

Name of the second feature to plot on the y-axis

pt.size

Point size for the plot (default: 1)

group.by

Name of the grouping variable for the plot (optional)

Feat

Name of the feature to use for coloring the plot

colors

Vector of colors for the color gradient (default: c('white', 'gray', 'gold', 'red', 'maroon'))

base_size

Base font size for the plot (default: 14)

Value

A ggplot object


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