Generates a pseudo-visium grid of spots across a provided
spatial extent
Usage
makePseudoVisium(extent = NULL, micron_size = 1, name = "pseudo_visium")
Arguments
- extent
SpatExtent or anything else a SpatExtent can be extracted or
created from
- micron_size
size of a micrometer relative to spatial coordinates
- name
character. (default is 'pseudo_visium') Name of giottoPolygon
object to create
Value
A giottoPolygon for the pseudo-visium spots.
Details
This function generates a pseudo-Visium grid of spots based on the
input spatial locations. The micron_size param is used to determine the size
of the spots
Examples
e <- ext(0, 2000, 0, 2000)
x <- makePseudoVisium(extent = e, micron_size = 1)
#> 390 polygons generated
plot(x)