xyTable package:grDevices R Documentation _M_u_l_t_i_p_l_i_c_i_t_i_e_s _o_f (_x,_y) _P_o_i_n_t_s, _e._g., _f_o_r _a _S_u_n_f_l_o_w_e_r _P_l_o_t _D_e_s_c_r_i_p_t_i_o_n: Given (x,y) points, determine their multiplicity - checking for equality only up to some (crude kind of) noise. Note that this is special kind of 2D binning. _U_s_a_g_e: xyTable(x, y = NULL, digits) _A_r_g_u_m_e_n_t_s: x,y: numeric vectors of the same length; alternatively other (x,y) argument combinations as allowed by 'xy.coords(x,y)'. digits: integer specifying the significant digits to be used for determining equality of coordinates. These are compared after rounding them via 'signif(*,digits)'. _V_a_l_u_e: A list with three components of same length, x: x coordinates, rounded and sorted. y: y coordinates, rounded (and sorted within 'x'). number: multiplicities (positive integers); i.e., 'number[i]' is the multiplicity of '(x[i],y[i])'. _S_e_e _A_l_s_o: 'sunflowerplot' which typically uses 'xyTable()'; 'signif'. _E_x_a_m_p_l_e_s: xyTable(iris[,3:4], digits = 6) ## Discretized uncorrelated Gaussian: require(stats) xy <- data.frame(x = round(sort(rnorm(100))), y = rnorm(100)) xyTable(xy, digits = 1)