rug(x, ticksize = 0.03, side = 1, lwd = 0.5, col = par("fg"),
quiet = getOption("warn") < 0, …)
1
.axis
, such
as line
or pos
for specifying the location of the rug.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.jitter
which you may want for ties in x
.require(stats) # both 'density' and its default method
with(faithful, {
plot(density(eruptions, bw = 0.15))
rug(eruptions)
rug(jitter(eruptions, amount = 0.01), side = 3, col = "light blue")
})
Run the code above in your browser using DataLab