rotate {spatstat}R Documentation

Rotate

Description

Applies a rotation to any two-dimensional object, such as a point pattern or a window.

Usage

 rotate(X, angle=pi/2)

Arguments

X Any suitable dataset representing a two-dimensional object, such as a point pattern (object of class "ppp"), or a window (object of class "owin").
angle Angle of rotation.

Details

This is generic. Methods are provided for point patterns (rotate.ppp) and windows (rotate.owin).

The angle of rotation is measured in radians, anticlockwise, and the centre of rotation is the origin.

Value

Another object of the same type, representing the result of rotating X through the specified angle.

Author(s)

Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner rolf@math.unb.ca http://www.math.unb.ca/~rolf

See Also

rotate.ppp, rotate.owin

Examples

  data(cells)
  X <- rotate(cells, pi/3)
  ## Not run: 
  plot(X)
  plot(rotate(cells$window, pi/4))
  
## End(Not run)

[Package spatstat version 1.9-6 Index]