\Header{rug}{Add a Rug to a Plot}
\keyword{hplot}{rug}
\begin{Usage}
\begin{verbatim}
rug(x, ticksize=0.03, side=1, lwd=0.5)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x}] A numeric vector
\item[\texttt{ticksize}] The length of the ticks making up the `rug'. Positive
lengths give inwards ticks.
\item[\texttt{side}] On which side of the plot box the rug will be
plotted. Normally 1 (bottom) or 3 (top).
\item[\texttt{lwd}] The line width of the ticks.
\end{ldescription}
\end{Arguments}
\begin{Description}
Adds a \emph{rug} representation (1-d plot) of the data to the plot.\end{Description}
\begin{Author}
B.D. Ripley\end{Author}
\begin{SeeAlso}
\texttt{\Link{jitter}} which you may want for ties in \texttt{x}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(faithful)
attach(faithful)
plot(density(eruptions, bw=0.15))
rug(eruptions)
\end{ExampleCode}
\end{Examples}

