trmat package:spatial R Documentation _E_v_a_l_u_a_t_e _T_r_e_n_d _S_u_r_f_a_c_e _o_v_e_r _a _G_r_i_d _D_e_s_c_r_i_p_t_i_o_n: Evaluate trend surface over a grid. _U_s_a_g_e: trmat(obj, xl, xu, yl, yu, n) _A_r_g_u_m_e_n_t_s: obj: object returned by 'surf.ls' or 'surf.gls' xl: limits of the rectangle for grid xu: yl: yu: n: use 'n' x 'n' grid within the rectangle _V_a_l_u_e: list with components 'x', 'y' and 'z' suitable for 'contour' and 'image'. _R_e_f_e_r_e_n_c_e_s: Ripley, B. D. (1981) _Spatial Statistics._ Wiley. Venables, W. N. and Ripley, B. D. (2002) _Modern Applied Statistics with S._ Fourth edition. Springer. _S_e_e _A_l_s_o: 'surf.ls', 'surf.gls' _E_x_a_m_p_l_e_s: data(topo, package="MASS") topo.kr <- surf.ls(2, topo) trsurf <- trmat(topo.kr, 0, 6.5, 0, 6.5, 50)