\HeaderA{plotLongVector}{A simple function to plot a very long vector.}{plotLongVector}
\begin{Description}\relax
This function does basically the same as just calling \code{plot( vec )} but is much faster in case of a very long vector. This is because it first calls \code{\LinkA{shrinkVector}{shrinkVector}}.
\end{Description}
\begin{Usage}
\begin{verbatim}
plotLongVector(vec, offset = 1, shrinkLength = 4000, xlab = "", ylab = "", ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{vec}] The numerical vector to be plotted 
\item[\code{offset}] The x axis is labelled with numbers from \code{offset} to \code{offset+length(vec)-1}. 
\item[\code{shrinkLength}] To which length to shrink the vector before plotting it. Should be at least the width of your plot in pixels.
\item[\code{xlab}] The label of the x axis, to be passed to \code{\LinkA{plot}{plot}}. 
\item[\code{ylab}] The label of the y axis, to be passed to \code{\LinkA{plot}{plot}}. 
\item[\code{...}] Further arguments to be passed to \code{\LinkA{plot}{plot}}.
\end{ldescription}
\end{Arguments}
\begin{Value}
Invisible Null and a plot.
\end{Value}
\begin{Author}\relax
Simon Anders, EMBL-EBI, sanders@fs.tum.de
\end{Author}
\begin{Examples}
\begin{ExampleCode}
plotLongVector( rep( 1:100000, 20 ) )
\end{ExampleCode}
\end{Examples}

