plotSpatialProp {SpatialDDLS} | R Documentation |
Plot predicted proportions for a specific cell type using spatial coordinates of spots
Description
Color spots on the spatial coordinates according to the predicted proportions of a particular cell type. Color scale is adapted depending on the range of predicted proportions.
Usage
plotSpatialProp(
object,
index.st,
cell.type,
colors = "blues",
set = "raw",
prediction = "Regularized",
limits = NULL,
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
|
cell.type |
Cell type predicted proportions to color spots by. |
colors |
Color scale to be used. It can be |
set |
If results were simplified (see |
prediction |
It can be |
limits |
A vector of two elements indicating wanted limits for color
scale. If |
size.point |
Size of points (0.1 by default). |
title |
Title of plot. |
theme |
ggplot2 theme. |
Value
A ggplot object.
See Also
plotSpatialPropAll
deconvSpatialDDLS
trainDeconvModel