
Plot distances between intrinsic and extrinsic profiles
Source:R/plotSpatialCoor.R
plotDistances.RdColor spots on the spatial coordinates according to distances between intrinsic and extrinsic transcriptional profiles.
Usage
plotDistances(
object,
index.st,
mid.scale = "mean",
size.point = 1,
title = NULL,
theme = NULL
)Arguments
- object
A
SpatialDDLSobject.- index.st
Index of the spatial transcriptomics data to be plotted. It can be either a position or a name if a named list was provided.
- mid.scale
The midpoint of the diverging scale. it may be
'mean'or'median'(the former by default).- size.point
Size of points (0.1 by default).
- title
Title of plot.
- theme
ggplot2 theme.