gen                 package:splancs                 R Documentation

_g_e_n_e_r_a_t_e _p_o_i_n_t_s _i_n _p_o_l_y_g_o_n

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

     generates random points within a defined polygon, trying to reach
     `npoints' points - used in `csr'.

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

     gen(poly, npoints)

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

    poly: A polygon data set

 npoints: The number of points to generate

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

     returns a point object.

_R_e_f_e_r_e_n_c_e_s:

     Rowlingson, B. and Diggle, P. 1993 Splancs: spatial point pattern
     analysis code in S-Plus.  Computers and Geosciences, 19, 627-655;
     the original sources can be accessed at: <URL:
     http://www.maths.lancs.ac.uk/~rowlings/Splancs/>. See also Bivand,
     R. and Gebhardt, A. 2000 Implementing functions for spatial
     statistical analysis using the R language. Journal of Geographical
     Systems, 2, 307-317.

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

     `csr'

