Learn R Programming

JBTools (version 0.7.2.9)

plotBG: Plot a colored plot background

Description

plotBG colors the plot background of the plot region (not the device region!).

Usage

plotBG(color, exp.factor = 1, xlim = c(), ylim = c(), ...)

Arguments

color
color: which color to use
exp.factor
integer:possible expansion factor to use if very high values are plotted
xlim
ylim
...
further arguments passed to plot()

Value

Details

The function opens a plot with no content and plots a very large polygon of the given color. Afterwards a new high level plot can be plotted over this background.