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