rotateSpatialAnnotation | R Documentation |
Rotates the outline of a spatial annotation to a specific degree.
rotateSpatialAnnotation(object, ...)
## S4 method for signature 'SPATA2'
rotateSpatialAnnotation(
object,
id,
angle,
clockwise = TRUE,
new_id = FALSE,
overwrite = FALSE
)
## S4 method for signature 'SpatialData'
rotateSpatialAnnotation(
object,
id,
angle,
clockwise = TRUE,
new_id = FALSE,
overwrite = FALSE
)
object |
An object of class |
... |
Additional arguments given to |
id |
Character value. The ID of the spatial annotation of interest. |
angle |
Numeric value. The angle by which the coordinates are rotated. Should range from 1-359. |
clockwise |
Logical value. If |
new_id |
Character value or |
overwrite |
Logical value. Must be |
The updated input object, containing the added, removed or computed results.
centerSpatialAnnotation()
, expandSpatialAnnotation()
, smoothSpatialAnnotation()
,
shiftSpatialAnnotation()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.