hcell2xyInt              package:hexbin              R Documentation

_C_h_a_n_g_e _c_e_l_l _i_d_s _t_o _2_d _i_n_t_e_g_e_r _c_o_o_r_d_i_n_a_t_e _s_y_s_t_e_m

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

     Transforms the cell representation of a a lattice into a 2d
     integer coordinate system.

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

       hcell2xyInt(hbin, xbins=NULL, xbnds=NULL, ybnds=NULL, shape=NULL)

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

    hbin: a object of class '"hexbin"', typically produced by
          'hexbin(*)'.

   xbins: the number of bins partitioning the range of xbnds.

xbnds, ybnds: horizontal and vertical limits of the binning region in x
          or y units respectively; must be numeric vector of length 2.

   shape: the _shape_ = yheight/xwidth of the plotting regions.

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

     Takes a grid defined by either the hexbin parameters or dimen in a
     hexbin object and translates the cell ids for the grid into 2d
     integer coordinates.

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

     An integer matrix with two columns, i and j representing the
     integer xy coordinates of the hexagon grid. 

       i: Integer coordiante of the rows, increases from bottom to top

       j: Integer coordiante of the columns, increases from left to
          right

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

     Nicholas Lewin-Koh

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

     'hcell2xy'

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

      x<-rnorm(10000)
      y<-rnorm(10000)
      hbin<-hexbin(x,y)
      ijInt<-hcell2xyInt(hbin)

