lfgrid                package:locfit                R Documentation

_L_o_c_f_i_t - _g_r_i_d _e_v_a_l_u_a_t_i_o_n _s_t_r_u_c_t_u_r_e.

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

     'lfgrid()' is used to specify evaluation on a grid of points for
     'locfit.raw()'. The structure computes a bounding box for the
     data, and divides that into a grid with specified margins.

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

     lfgrid(mg=10, ll, ur)

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

      mg: Number of grid points along each margin. Can be a single
          number (which is applied in each dimension), or a vector
          specifying a value for each dimension. 

      ll: Lower left limits for the grid. Length should be the number
          of dimensions of the data provided to 'locfit.raw()'. 

      ur: Upper right limits for the grid. By default, 'll' and 'ur'
          are generated as the bounding box for the data. 

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

     data(ethanol, package="locfit")
     plot.eval(locfit(NOx ~ lp(E, C, scale=TRUE), data=ethanol, ev=lfgrid()))

