Skip to contents

access and set spat_unit slot of S4 subobject

Usage

# S4 method for class 'ANY'
spatUnit(x)

# S4 method for class 'list'
spatUnit(x)

# S4 method for class 'spatData'
spatUnit(x)

# S4 method for class 'giottoPolygon'
spatUnit(x)

# S4 method for class 'spatData'
spatUnit(x) <- value

# S4 method for class 'giottoPolygon'
spatUnit(x) <- value

Arguments

x

a Giotto S4 class subobject with spatial unit

value

value to set as spatial unit

Value

spat_unit

Functions

  • spatUnit(ANY): Get spatial unit information

  • spatUnit(spatData): Get spatial unit information

  • spatUnit(giottoPolygon): Get spatial unit information

  • spatUnit(spatData) <- value: Set spatial unit information

  • spatUnit(giottoPolygon) <- value: Set giottoPolygon spat_unit

Examples

g <- GiottoData::loadSubObjectMini("featMetaObj")

spatUnit(g)
#> [1] "aggregate"