sjevor                package:sjevor                R Documentation

_V_o_r_o_n_o_i _a_n_a_l_y_s_i_s

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

     Compute the Voronoi tesselation,  using Steve Fortune's code.

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

     vorcr(x,y, xl, xh, yl, yh, fuzz, opts)

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

     x,y: x and y coordinates of the sites

  xl, xh: lowest and highest x coordinate value

  yl, yh: lowest and highest y coordinate value

    fuzz: amount of random noise to add to the position of each point

    opts: useful options when calculating voronoi information.  TODO
          These will need documenting.

       v: The structure returned by the Voronoi code.

show.pts,show.rejects: If true, then sites are drawn as circles.
          Furthermore, if show.rejects is true, the reject cells are
          filled.

show.areas: If true, then show.pts is ignored and instead the area of
          each polygon is displayed.

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

       v: 

     A data structure that contains several interesting things...

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

     x <- runif(100); y <- runif(100)
     plot(x, y, asp=1)
     v <- vorcr(x, y, 0, 1, 0, 1)
     class(v)
     names(v)
     plot(v)
     del.plot(v)
     vorcr.polygons(v)
     ianglesplot(v$iangles, show=TRUE)
     stopifnot((apply(v$delangs, 1, sum) - 180) < 0.001)

