plotSpots | R Documentation |
Plot spatial transcriptomic annotations per spot
plotSpots(
spe,
what = c("annotation", "expression", "reduceddim"),
...,
assay = SummarizedExperiment::assayNames(spe),
dimred = SingleCellExperiment::reducedDimNames(spe),
img = TRUE,
crop = FALSE,
imgAlpha = 1,
rl = 1,
circles = FALSE
)
spe |
a SpatialExperiment object. |
what |
a character specifying what aspect should be plot, "annotation", "expression" or reduced dimension ("reduceddim"). |
... |
aesthetic mappings to pass to 'ggplot2::aes_string()'. |
assay |
a numeric or character, specifying the assay to use (for SummarizedExperiment). |
dimred |
a string or integer scalar indicating the reduced dimension result in 'reducedDims(object)' to plot. |
img |
a logical indicating whether the tissue image (if present) should |
rl |
a numeric, specifying the relative scale factor to apply to text on the plot. |
a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.