Learn R Programming

SpatialDDLS (version 1.0.1)

plotDistances: Plot distances between intrinsic and extrinsic profiles

Description

Color 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
)

Value

A ggplot object.

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 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.

See Also

deconvSpatialDDLS trainDeconvModel