[R] panel.grid

Deepayan Sarkar deepayan at stat.wisc.edu
Tue Apr 20 19:27:48 CEST 2004


On Tuesday 20 April 2004 12:16, W. C. Thacker wrote:
> Is there a way to get panel.grid to put the grid lines at specific
> locations?  It would be nice to have them correspond to selected tick
> marks.

?panel.grid says:

Arguments:

     h,v: For panel.abline, numerical vectors giving y and x locations
          respectively of horizontal and vertical lines to be added to
          the plot. For panel.grid, number of horizontal and vertical
          reference lines to be added to the plot; h=-1 and v=-1 make
          the grids aligned with the axis labels (this doesn't always
          work). 

So, doesn't look like it. But it seems you are looking for the 
functionality of panel.abline() instead, so why not use that ?

Deepayan




More information about the R-help mailing list