home *** CD-ROM | disk | FTP | other *** search
-
- _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
-
- xy.coords(x, y, xlab=NULL, ylab=NULL)
-
- _A_r_g_u_m_e_n_t_s:
-
- x,y : the x and y coordinates of a set of points.
- Alternatively, a single argument x can be be
- provided. In this case, an attempt is made
- to interpret the argument in a way suitable
- for plotting. If the argument is a list con-
- taining components x and y, these are used
- are assumed to plotting coordinates; if the
- argument contains a time series, the x values
- are taken to be time and the y values to be
- the time series; if the argument is a matrix
- with two columns, the first is assumed to
- contain the x values and the second the y
- values; in any other case, the argument is
- coerced to a vector and the values plotted
- against their indices.
-
- xlab,ylab : names for the x and y variables to be
- extracted.
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- xy.coords is used by many function to obtain x and y
- coordinates for plotting. The use of this common
- mechanism across all R functions produces a measure of
- consistency.
-
- plot.default and lowess are examples of functions which
- use this mechanism.
-
- _V_a_l_u_e_s:
-
- A list with the components
-
- x : numeric vector of abscissa values.
-
- y : numeric vector of the same length as x.
-
- xlab : character(1) or NULL, the `label' of x.
-
- ylab : character(1) or NULL, the `label' of y.
-
- _E_x_a_m_p_l_e_s:
-
- xy.coords(fft(c(1:10)),NULL)
-
-