hexpolygon              package:hexbin              R Documentation

_H_e_x_a_g_o_n _C_o_o_r_d_i_n_a_t_e_s _a_n_d _P_o_l_y_g_o_n _D_r_a_w_i_n_g

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

     Simple 'low-level' function for computing and drawing hexagons.

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

     hexcoords(dx, dy = NULL, n = 1, sep = NA)
     hexpolygon(x, y, hexC = hexcoords(dx, dy, n = 1), dx, dy = NULL, ...)

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

   dx,dy: horizontal and vertical width of the hexagon(s).

       n: number of hexagon "repeats".

     sep: separator value to be put between coordinates of different
          hexagons.

     x,y: numeric vectors of the same length specifying the hexagon
          _centers_ around which to draw.

    hexC: a list with components 'x' and 'y', see the default value.

     ...: further arguments passed to 'polygon'.

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

     'hexcoords' returns a list with two components 

     x,y: numeric vectors of length n * 7 (or n * 6 if 'sep=NULL')
          specifying the hexagon polygon coordinates (with 'sep'
          appended to 6-tuple).


     'hexpolygon' returns whatever its 'polygon(.)' call returns.

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

     Martin Maechler

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

     'hexagons' which builds on these.

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

       hexcoords(1)

