Rug plot in 1d using the grid package

rug_1d_grid(
  zargs,
  loc = 0.5,
  length = 0.5,
  width = 0.001,
  col = par("fg"),
  draw = FALSE,
  ...
)

Arguments

zargs

argument list as passed from zenplot()

loc

location in [0,1]; 0 corresponds to left, 1 to right (in the direction of the path)

length

length of the rugs

width

line width of the rugs

col

default color of the rectangles/rugs

draw

logical indicating whether drawing should take place

...

additional arguments passed to gpar()

Value

grob (invisibly)

Note

The choice of width and height is to leave the rugs enough space to not touch points (so to avoid points and rugs overplotting).

Author

Marius Hofert and Wayne Oldford