View source: R/plotMolecules.R
plotMolecules | R Documentation |
Plotting functions for spatial transcriptomics data.
plotMolecules(
spe,
molecule = NULL,
x_coord = NULL,
y_coord = NULL,
sample_id = "sample_id",
pal = c("gray90", "navy"),
point_size = 0.3
)
spe |
(SpatialExperiment) Input data, assumed to be a
|
molecule |
Name of mRNA molecule to plot (assumed to match one of the
row names of |
x_coord |
Name of column in |
y_coord |
Name of column in |
sample_id |
Name of column in |
pal |
Color palette, provided as a vector of length 2 for the low and high range. Default = c("gray90", "navy"). |
point_size |
Point size. Default = 0.3. |
Function to create spot plot for molecule-based datasets, showing spatial locations in x-y coordinates with optional annotations such as expression of a gene.
Returns a ggplot object, which may be further modified using ggplot functions.
Lukas M. Weber
library(STexampleData)
spe <- seqFISH_mouseEmbryo()
plotMolecules(spe, molecule = "Sox2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.