Adds a rug representation (1-d plot) of the data to the plot.
rug(x, ticksize = 0.03, side = 1, lwd = 0.5, col = par("fg"), quiet = getOption("warn") < 0, ...)
- A numeric vector
- The length of the ticks making up the ‘rug’. Positive lengths give inwards ticks.
- On which side of the plot box the rug will be plotted. Normally 1 (bottom) or 3 (top).
- The line width of the ticks. Some devices will round the default width up to
- The colour the ticks are plotted in.
- logical indicating if there should be a warning about clipped values.
- further arguments, passed to
axis, such as
posfor specifying the location of the rug.
Because of the way
rug is implemented, only values of
x that fall within the plot region are included. There will be a warning if any finite values are omitted, but non-finite values are omitted silently.
Chambers, J. M. and Hastie, T. J. (1992) Statistical Models in S. Wadsworth & Brooks/Cole.
jitter which you may want for ties in
Documentation reproduced from R 3.0.1. License: GPL-2.