Plot stored SpatialDM results
Arguments
- object
A Seurat object with SpatialDM results.
- result.name
Stored result name.
- plot_type
Plot type (`"weights"`, `"global"`, or `"local"`).
- pair
LR interaction name for local plotting.
- spot
Spot identifier for weight plotting.
- signaling
Which stored weight matrix to use.
- highlight
LR interactions to label in the global plot. The global plot uses raw p-values only when no plotted interaction has a valid FDR.
- palette
Palette name. The global plot defaults to `"Chinese"`; other plot types retain their continuous palettes.
- palcolor
Custom colors that override the palette. For the global plot, supply colors in the order `Selected`, `Not selected`, or name them with those labels. A single unnamed color overrides only `Selected`.
- theme_use, theme_args
SCOP theme controls.
- image.scale
Image scale factor matching the selected raster.
- ...
Arguments passed to other functions.
Examples
if (FALSE) { # \dontrun{
data(visium_human_pancreas_sub)
spatial <- Seurat::NormalizeData(
visium_human_pancreas_sub, assay = "Spatial", verbose = FALSE
)
spatial <- RunSpatialDM(
spatial, assay = "Spatial", image = "slice1",
coord.cols = c("x", "y"), coordinate.unit = "pixel", l = 54.70832
)
SpatialDMPlot(spatial, plot_type = "global")
SpatialDMPlot(spatial, plot_type = "weights", spot = colnames(spatial)[1])
SpatialDMPlot(spatial, plot_type = "local", pair = "MDK_SDC4")
} # }