Applies a rotation to any two-dimensional object, such as a point pattern or a window.
- Any suitable dataset representing a two-dimensional
object, such as a point pattern (object of class
"ppp"), or a window (object of class
- Angle of rotation.
The angle of rotation is measured in radians, anticlockwise, and the centre of rotation is the origin.
- Another object of the same type, representing the
result of rotating
Xthrough the specified angle.
data(cells) X <- rotate(cells, pi/3) plot(X) plot(rotate(cells$window, pi/4))
Looks like there are no examples yet.