home *** CD-ROM | disk | FTP | other *** search
-
- _A_d_d _C_o_n_n_e_c_t_e_d _L_i_n_e _S_e_g_m_e_n_t_s _t_o _a _P_l_o_t
-
- lines(x, y, ...)
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- lines takes the coordinates given in the x and y vec-
- tors and joins those points with line segments. The
- coordinates can alternatively be passed to lines in a
- plotting structure (a list with x and y components), a
- time series, etc.
-
- Graphical parameters can also be specified as argu-
- ments.
-
- _E_x_a_m_p_l_e_s:
-
- # draw a smooth line through a scatter plot
- plot(cars, main="Stopping Distance versus Speed")
- lines(lowess(cars))
-
-