line                  package:stats                  R Documentation

_R_o_b_u_s_t _L_i_n_e _F_i_t_t_i_n_g

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

     Fit a line robustly as recommended in _Exploratory Data Analysis_.

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

     line(x, y)

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

     x,y: the arguments can be any way of specifying x-y pairs.

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

     An object of class '"tukeyline"'.

     Methods are available for the generic functions 'coef',
     'residuals', 'fitted', and 'print'.

_R_e_f_e_r_e_n_c_e_s:

     Tukey, J. W. (1977). _Exploratory Data Analysis_, Reading
     Massachusetts: Addison-Wesley.

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

     'lm'.

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

     data(cars)
     plot(cars)
     (z <- line(cars))
     abline(coef(z))
     ## Tukey-Anscombe Plot :
     plot(residuals(z) ~ fitted(z), main = deparse(z$call))

