Color spots on the spatial coordinates plot according to their predicted cell type proportions. All cell types are represented together using the same color scale from 0 to 1.
plotSpatialPropAll(
object,
index.st,
colors = "blues",
set = "raw",
prediction = "Regularized",
size.point = 0.1,
title = NULL,
nrow = NULL,
ncol = 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.
Color scale to be used. It can be "blues"
or
"spectral"
(the former by default).
If results were simplified (see ?deconvSpatialDDLS
for details), which results to plot (raw
by default).
It can be "Regularized"
, "Intrinsic"
or
"Extrinsic"
("Regularized"
by default).
Size of points (0.1 by default).
Title of plot.
Number of rows in the split plot.
Number of columns in the split plot.
ggplot2 theme.
plotSpatialProp
deconvSpatialDDLS
trainDeconvModel