shift                package:spatstat                R Documentation

_A_p_p_l_y _V_e_c_t_o_r _T_r_a_n_s_l_a_t_i_o_n

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

     Applies a vector shift of the plane  to a geometrical object, such
     as a point pattern or a window.

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

      shift(X, vec=c(0,0))

_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"').

     vec: Vector of length 2 representing a translation.

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

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

     The object is translated by the vector `vec'.

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

     Another object of the same type, representing the result of
     applying the shift.

_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:

     `shift.ppp', `shift.owin', `rotate', `affine'

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

       library(spatstat)
       data(cells)
       X <- shift(cells, c(2,3))

       plot(X)
       # no discernible difference except coordinates are different


