plotSpatialPropAll {SpatialDDLS} | R Documentation |
Plot predicted proportions for all cell types using spatial coordinates of spots
Description
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.
Usage
plotSpatialPropAll(
object,
index.st,
colors = "blues",
set = "raw",
prediction = "Regularized",
size.point = 0.1,
title = NULL,
nrow = NULL,
ncol = 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
|
colors |
Color scale to be used. It can be |
set |
If results were simplified (see |
prediction |
It can be |
size.point |
Size of points (0.1 by default). |
title |
Title of plot. |
nrow |
Number of rows in the split plot. |
ncol |
Number of columns in the split plot. |
theme |
ggplot2 theme. |
Value
A ggplot object.
See Also
plotSpatialProp
deconvSpatialDDLS
trainDeconvModel