Color the plot area by drawing a rectangle. Default color is 'grey80'.

plotAreaColor(color = "grey80", border = NA, ...)

Arguments

color

Color of the rectangle, default is set to 'grey80'.

border

Color of the border of the rectangle drawn, default is set to NA, that is no border.

...

Additional arguments to be passed to graphics::rect() function.

Details

The function calls graphics::rect() and draw a colored rectangle (default color is set to light blue) whose dimensions are given by argument usr of function graphics::par().

Note

In graphics::par(), argument bg colors the entire window.

Examples

#Example 1: plot0()
plotAreaColor()
#Example 2: plot0()
plotAreaColor(col=8, lwd=4, border=4)