Rectangle plot in 2d using R's base graphics

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

Arguments

zargs

argument list as passed from zenplot()

loc

(x,y)-location (in (0,1)^2) of the center of the rectangle

width

width of the rectangle as a fraction of 1

height

height of the rectangle as a fraction of 1

add

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

group...

list of arguments passed to group_2d_graphics (or NULL)

plot...

additional arguments passed to plot_region()

...

additional arguments passed to rect()

Value

invisible()

Author

Marius Hofert and Wayne Oldford