plotSpatialClustering {SpatialDDLS} | R Documentation |
Plot results of clustering based on predicted cell proportions
Description
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 |
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
|
method |
Clustering method results to plot. It can be |
k.nn |
Number of nearest neighbors used if |
k.centers |
Number of k centers used if |
colors |
Vector of colors to be used. |
size.point |
Size of points (0.1 by default). |
title |
Title of plot. |
theme |
ggplot2 theme. |
Value
A ggplot object.
See Also
spatialPropClustering
deconvSpatialDDLS
[Package SpatialDDLS version 1.0.2 Index]