Skip to content
Prev 305740 / 398506 Next

add reference lines (or grid) in background

On 09/18/2012 06:35 PM, Luigi wrote:
Hi Luigi,
There are a few different ways to get your grid "under" the plot. 
Perhaps the most straightforward is to display the plot, then the grid, 
then "add" the plot on top using the "add" argument.

The box.heresy plot in the plotrix package is one of the functions that 
has a "do.first" argument. This can be a call to "grid" and displays the 
grid before the plot. This involves only one call, but it is a bit 
different from the standard boxplot.

Jim