View source: R/plotSpatialCoor.R
plotSpatialProp | R Documentation |
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.
plotSpatialProp(
object,
index.st,
cell.type,
colors = "blues",
set = "raw",
prediction = "Regularized",
limits = NULL,
size.point = 1,
title = NULL,
theme = NULL
)
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. |
A ggplot object.
plotSpatialPropAll
deconvSpatialDDLS
trainDeconvModel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.