Rectangle plot in 1d using the grid package

rect_1d_grid(
  zargs,
  loc = c(0.5, 0.5),
  width = 1,
  height = 1,
  draw = FALSE,
  ...
)

Arguments

zargs

argument list as passed from zenplot()

loc

(x,y)-location of the rectangle

width

width of the rectangle (when viewed in walking direction)

height

height of the rectangle (when viewed in walking direction)

draw

logical indicating whether drawing should take place

...

additional arguments passed to gpar()

Value

grob (invisibly)

Author

Marius Hofert and Wayne Oldford