distmap               package:spatstat               R Documentation

_D_i_s_t_a_n_c_e _M_a_p

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

     Compute the distance map of an object. Generic.

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

       distmap(X, ...)

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

     ...: Arguments passed to 'as.mask' to control pixel resolution. 

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

     The ``distance map'' of a set of points A is the function f whose
     value 'f(x)' is defined for any two-dimensional location x as the
     shortest distance from x to A.

     This function computes the distance map of the set 'X' and returns
     the distance map as a pixel image.

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

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

     A pixel image (object of class '"im"') whose grey scale values are
     the values of the distance map.

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

     'distmap.ppp', 'distmap.owin'

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

       data(cells)
       U <- distmap(cells)
       data(letterR)
       V <- distmap(letterR)
       ## Not run: 
       plot(U)
       plot(V)
       
     ## End(Not run)

