Color spots on the spatial coordinates according to the results of clustering based on predicted proportions.
plotSpatialClustering(
object,
index.st,
method,
k.nn,
k.centers,
colors,
size.point = 1,
title = NULL,
theme = NULL
)
A ggplot object.
A SpatialDDLS
object.
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.
Clustering method results to plot. It can be "graph"
or
"k.means"
. If missing, the first configuration found in the object
will be plotted.
Number of nearest neighbors used if method == "graph"
.
Number of k centers used if method == "k.means"
.
Vector of colors to be used.
Size of points (0.1 by default).
Title of plot.
ggplot2 theme.
spatialPropClustering
deconvSpatialDDLS