home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / base / lines < prev    next >
Encoding:
Text File  |  1997-04-23  |  670 b   |  23 lines

  1.     
  2.     _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
  3.     
  4.          lines(x, y, ...)
  5.     
  6.     _D_e_s_c_r_i_p_t_i_o_n:
  7.     
  8.          lines takes the coordinates given in the x and y vec-
  9.          tors and joins those points with line segments.  The
  10.          coordinates can alternatively be passed to lines in a
  11.          plotting structure (a list with x and y components), a
  12.          time series, etc.
  13.     
  14.          Graphical parameters can also be specified as argu-
  15.          ments.
  16.     
  17.     _E_x_a_m_p_l_e_s:
  18.     
  19.          # draw a smooth line through a scatter plot
  20.          plot(cars, main="Stopping Distance versus Speed")
  21.          lines(lowess(cars))
  22.     
  23.