getSpatAnnRange | R Documentation |
Extracts the minimum and maximum x- and y-coordinates of the spatial annotation border.
getSpatAnnRange(object, ...)
## S4 method for signature 'SPATA2'
getSpatAnnRange(object, id, expand = 0, scale_fct = 1, ...)
## S4 method for signature 'SpatialData'
getSpatAnnRange(object, id, scale_fct = 1)
object |
An object of class |
... |
Used to absorb deprecated arguments or functions. |
id |
Character value specifying the ID of the spatial annotation of interest. If there is only one spatial annotation in the object, the function will default to using it. However, if there are multiple annotations, this argument must be explicitly specified to identify the target annotation. |
expand |
Specifies image expansion. An image that is cropped based on an image
annotation centers around the image annotation. If |
List of length two. Named with x and y. Each slot contains a vector of length two with the minima and maxima in pixel.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.