\Header{xyVector}{Construct an xyVector object}
\alias{asVector.xyVector}{xyVector}
\alias{print.xyVector}{xyVector}
\alias{plot.xyVector}{xyVector}
\keyword{models }{xyVector}
\begin{Usage}
\begin{verbatim}
xyVector(x, y)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x}] a numeric vector
\item[\texttt{y}] a numeric vector of the same length as \texttt{x}
\end{ldescription}
\end{Arguments}
\begin{Description}
Create an object to represent a set of x-y pairs.  The resulting
object can be treated as a matrix or as a data frame or as a vector.
When treated as a vector it reduces to the \texttt{y} component only.

The result of functions such as \texttt{predict.spline} is returned as
an \texttt{xyVector} object so the x-values used to generate the
y-positions are retained, say for purposes of generating plots.\end{Description}
\begin{Value}
An object of class \texttt{xyVector} with components
\begin{ldescription}
\item[\texttt{x}] a numeric vector
\item[\texttt{y}] a numeric vector of the same length as \texttt{x}
\end{ldescription}
\end{Value}
\begin{Author}
Douglas Bates and Bill Venables\end{Author}
\begin{Examples}
\begin{ExampleCode}
data( women )
ispl <- interpSpline( weight ~ height, women )
weights <- predict( ispl, seq( 55, 75, len = 51 ))
class( weights )
plot( weights )
weights
\end{ExampleCode}
\end{Examples}

