Skip to contents

Color spots on the spatial coordinates according to the logCPM values of a particular gene.

Usage

plotSpatialGeneExpr(
  object,
  index.st,
  gene,
  colors = "spectral",
  size.point = 1,
  title = NULL,
  theme = NULL
)

Arguments

object

A SpatialDDLS object.

index.st

Index of the spatial transcriptomics data to be plotted. It can be either a position or a name if a named list of SpatialExperiment objects was provided.

gene

Gene to color spots by.

colors

Color scale to be used. It can be "blues" or "spectral" (the latter by default).

size.point

Size of points (0.1 by default).

title

Title of plot.

theme

ggplot2 theme.

Value

A ggplot object.