centerSpatialAnnotation | R Documentation |
Shifts the borders of a spatial annotation in a way that
its center corresponds to the input of c(center_x, center_y)
.
centerSpatialAnnotation(object, ...)
## S4 method for signature 'SPATA2'
centerSpatialAnnotation(
object,
id,
center_x,
center_y,
new_id = FALSE,
overwrite = FALSE
)
## S4 method for signature 'SpatialData'
centerSpatialAnnotation(
object,
id,
center_x,
center_y,
new_id = FALSE,
overwrite = FALSE
)
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. |
center_x , center_y |
Distance measures. The new center of the spatial annotation. |
new_id |
Character value or |
overwrite |
Logical value. Must be |
The updated input object, containing the added, removed or computed results.
expandSpatialAnnotation()
, shiftSpatialAnnotation()
,
smoothSpatialAnnotation()
, SpatialAnnotation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.