addGrid {RIbench} | R Documentation |
Add a grid to an existing plot.
Description
It is possible to use automatically determined grid lines (x=NULL, y=NULL
) or specifying the number
of cells x = 3, y = 4
as done by grid
. Additionally, x- and y-locations of grid-lines can be specified,
e.g. x = 1:10, y = seq(0,10,2)
.
Usage
addGrid(x = NULL, y = NULL, col = "lightgray", lwd = 1L, lty = 3L)
Arguments
x |
(integer, numeric) single integer specifies number of cells, numeric vector specifies vertical grid-lines |
y |
(integer, numeric) single integer specifies number of cells, numeric vector specifies horizontal grid-lines |
col |
(character) color of grid-lines |
lwd |
(integer) line width of grid-lines |
lty |
(integer) line type of grid-lines |
Author(s)
Andre Schuetzenmeister andre.schuetzenmeister@roche.com
[Package RIbench version 1.0.2 Index]