ruginv: Add an Inverse Rug to a Plot

Description Usage Arguments Author(s) See Also Examples

Description

Adds a rug representation (1-d plot) of the data to the plot, but unlike in rug, the coloring is inverted.

Usage

1
2
3
ruginv(x, ticksize = 0.03, side = 1, lwd = 0.5, 
col = par("fg"), col.ticks = "white", 
quiet = getOption("warn") < 0, ...)

Arguments

x

A numeric vector.

ticksize

The length of the ticks making up the <91>rug<92>. Positive lengths give inwards ticks.

side

On which side of the plot box the rug will be plotted. Normally 1 (bottom) or 3 (top).

lwd

The line width of the ticks.

col

The colour the background of the ticks is plotted in.

col.ticks

The colour the ticks are plotted in.

quiet

Logical indicating if there should be a warning about clipped values.

...

Further arguments, passed to polygon when plotting the background for the ticks.

Author(s)

Peter Solymos after rug

See Also

rug

Examples

1
2
3
4
5
require(stats)
plot(density(faithful$eruptions, bw = 0.15))
ruginv(faithful$eruptions, ticksize = -0.05)
ruginv(jitter(faithful$eruptions, amount = 0.01), side = 3, 
    col = "light blue")

myplotrix documentation built on May 2, 2019, 5:26 p.m.

Related to ruginv in myplotrix...