The rotate*() family rotates the current image or coordinates of spatial aspects or everything. See details for more information.

NOTE: rotateImage() only rotates the image and lets everything else as is. Only use it if you want to rotate the image because it is not aligned with the spatial coordinates. If you want to rotate the image while maintaining alignment with the spatial aspects in the spata2 object use rotateAll()!

rotateAll(object, angle, clockwise = TRUE)

rotateImage(object, angle, clockwise = TRUE, track = FALSE)

rotateCoordinates(object, angle, clockwise = TRUE, verbose = NULL)

rotateCoordsDf(object, angle, clockwise = TRUE, verbose = NULL)

rotateImageAnnotations(object, angle, clockwise = TRUE, verbose = NULL)

rotateSpatialTrajectories(object, angle, clockwise = TRUE, verbose = NULL)

Arguments

object

An object of class spata2.

angle

Numeric value. The angle by which the coordinates are rotated. Should range from 1-359.

clockwise

Logical value. If TRUE, rotation is performed in clockwise direction. If FALSE, the other way round.

track

Logical value. If TRUE, changes regarding the image justification (rotations and flipping) are tracked. Assuming that image versions of different resolution are stored on your device with the same justification as the primarily read image these changes in justification can be automatically applied if the image is exchanged via exchangeImage().

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

Details

The rotate*() functions can be used to rotate the complete SPATA2 object content or to rotate single aspects.

  • rotateAll(): Rotates image as well as every single spatial aspect. Always tracks the justification.

  • rotateImage(): Rotates the image.

  • rotateCoordinates(): Rotates the coordinates data.frame, image annotations and spatial trajectories.

  • rotateCoordsDf(): Rotates the coordinates data.frame.

  • rotateImageAnnotations(): Rotates image annotations.

  • rotateSpatialTrajectories(): Rotates spatial trajectories.

@seealso flipAll(), scaleAll()