rotate               package:spatstat               R Documentation

_R_o_t_a_t_e

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

      rotate(X, angle=pi/2)

_A_r_g_u_m_e_n_t_s:

       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.

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

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

_A_u_t_h_o_r(_s):

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

_S_e_e _A_l_s_o:

     `rotate.ppp', `rotate.owin'

_E_x_a_m_p_l_e_s:

       library(spatstat)
       data(cells)
       X <- rotate(cells, pi/3)

       plot(X)
       plot(rotate(cells$window, pi/4))


