Rectangle plot in 1d using R's base graphics

rect_1d_graphics(
  zargs,
  loc = c(0.5, 0.5),
  width = 1,
  height = 1,
  add = FALSE,
  plot... = NULL,
  ...
)

Arguments

zargs

argument list as passed from zenplot()

loc

(x,y)-location in [0,1]^2; 0 corresponds to left, 1 to right (in the direction of the path)

width

width of the rectangle (when viewed in walking direction)

height

height of the rectangle (when viewed in walking direction)

add

logical indicating whether this plot should be added to the last one

plot...

additional arguments passed to plot_region()

...

additional arguments passed to lines()

Value

invisible()

Author

Marius Hofert and Wayne Oldford