scatter.smooth            package:modreg            R Documentation

_S_c_a_t_t_e_r _P_l_o_t _w_i_t_h _S_m_o_o_t_h _C_u_r_v_e _F_i_t_t_e_d _b_y _L_o_e_s_s

_D_e_s_c_r_i_p_t_i_o_n:

     Plot and add a smooth curve computed by `loess' to a scatter plot.

_U_s_a_g_e:

     scatter.smooth(x, y, span = 2/3, degree = 1,
         family = c("symmetric", "gaussian"),
         xlab = deparse(substitute(x)), ylab = deparse(substitute(y)),
         ylim = range(y, prediction$y), evaluation = 50, ...)
     loess.smooth(x, y, span = 2/3, degree = 1,
         family = c("symmetric", "gaussian"), evaluation=50, ...)

_A_r_g_u_m_e_n_t_s:

       x: x coordinates for scatter plot.

       y: y coordinates for scatter plot.

    span: smoothness parameter for `loess'.

  degree: degree of local polynomial used.

  family: if `"gaussian"' fitting is by least-squares, and if
          `family="symmetric"' a re-descending M estimator is used.

    xlab: label for x axis.

    ylab: label for y axis.

    ylim: the y limits of the plot.

evaluation: number of points at which to evaluate the smooth curve.

     ...: graphical parameters.

_D_e_t_a_i_l_s:

     `loess.smooth' is an auxiliary function.

_V_a_l_u_e:

     None.

_A_u_t_h_o_r(_s):

     B.D. Ripley

_S_e_e _A_l_s_o:

     `loess'

_E_x_a_m_p_l_e_s:

     data(cars)
     attach(cars)
     scatter.smooth(speed, dist)
     detach()

