drawSpatialDimPlot: Draw Spatial Plot

View source: R/drawSpatialDimPlot.R

drawSpatialDimPlotR Documentation

Draw Spatial Plot

Description

Function that generates spatial dim plots for a given Seurat dataset

Usage

drawSpatialDimPlot(
  spatialObject,
  groupValue,
  recursiveSection = TRUE,
  sectionID = NULL
)

Arguments

spatialObject

spatial Seurat object to use

groupValue

metadata variable to show on the plot

recursiveSection

if plots should be made for all sections (default TRUE)

sectionID

if recursiveSection is FALSE, then a specific section ID should be defined (default NULL)

Value

This function generates and saves a spatial Dim plot in the Results folder and prints in the screen.

Examples

drawSpatialDimPlot(spatialObject = spatial,groupValue = "normCTXDistance_Bin5",recursiveSection = TRUE )
drawSpatialDimPlot(spatialObject = spatial,groupValue = "normCTXDistance_Bin5",recursiveSection = FALSE,sectionID = "B1_A1" )


fpestana-git/visualisR documentation built on May 2, 2022, 11:58 a.m.