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 / xy.coords < prev   
Encoding:
Text File  |  1997-04-23  |  1.7 KB  |  53 lines

  1.     
  2.     _E_x_t_r_a_c_t_i_n_g _P_l_o_t_t_i_n_g _S_t_r_u_c_t_u_r_e_s
  3.     
  4.          xy.coords(x, y, xlab=NULL, ylab=NULL)
  5.     
  6.     _A_r_g_u_m_e_n_t_s:
  7.     
  8.              x,y : the x and y coordinates of a set of points.
  9.                    Alternatively, a single argument x can be be
  10.                    provided.  In this case, an attempt is made
  11.                    to interpret the argument in a way suitable
  12.                    for plotting.  If the argument is a list con-
  13.                    taining components x and y, these are used
  14.                    are assumed to  plotting coordinates; if the
  15.                    argument contains a time series, the x values
  16.                    are taken to be time and the y values to be
  17.                    the time series; if the argument is a matrix
  18.                    with two columns, the first is assumed to
  19.                    contain the x values and the second the y
  20.                    values; in any other case, the argument is
  21.                    coerced to a vector and the values plotted
  22.                    against their indices.
  23.     
  24.        xlab,ylab : names for the x and y variables to be
  25.                    extracted.
  26.     
  27.     _D_e_s_c_r_i_p_t_i_o_n:
  28.     
  29.          xy.coords is used by many function to obtain x and y
  30.          coordinates for plotting.  The use of this common
  31.          mechanism across all R functions produces a measure of
  32.          consistency.
  33.     
  34.          plot.default and lowess are examples of functions which
  35.          use this mechanism.
  36.     
  37.     _V_a_l_u_e_s:
  38.     
  39.          A list with the components
  40.     
  41.           x : numeric vector of abscissa values.
  42.     
  43.           y : numeric vector of the same length as x.
  44.     
  45.        xlab : character(1) or NULL, the `label' of x.
  46.     
  47.        ylab : character(1) or NULL, the `label' of y.
  48.     
  49.     _E_x_a_m_p_l_e_s:
  50.     
  51.          xy.coords(fft(c(1:10)),NULL)
  52.     
  53.