hcell2xy               package:hexbin               R Documentation

_C_o_m_p_u_t_e _X _a_n_d _Y _C_o_o_r_d_i_n_a_t_e_s _f_o_r _H_e_x_a_g_o_n _C_e_l_l_s

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

     Computes x and y coordinates from hexagon cell id's.

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

     hcell2xy(hbin, check.erosion = TRUE)

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

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

check.erosion: logical indicating if only the eroded points should be
          returned in the case where 'hbin' inherits from '"erodebin"'
          (see 'erodebin-class'); is 'TRUE' by default.

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

     The hexbin object 'hbin' contains all the needed information. The
     purpose of this function is to reduce storage.  The cost is
     additional calculation.

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

     A list with two components of the same length as 'bin$cell', 

       x: 

       y: 

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

     'hexbin'.

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

     x <- rnorm(10000)
     y <- rnorm(10000)
     plot(x,y, pch=".")
     hbin <- hexbin(x,y)
     str(xys <- hcell2xy(hbin))
     points(xys, cex=1.5, col=2) ; title("hcell2xy( hexbin(..) )", col.main=2)

