gridlinesGrob: Draw gridlines for axes object

View source: R/gridlines.R

gridlinesGrobR Documentation

Draw gridlines for axes object

Description

Return a grob object that contains graphic object of four axes.

Usage

gridlinesGrob(
  xy.axes,
  at = list(NULL, NULL),
  lwd = 1,
  col = 2,
  lty = 1,
  vp = NULL,
  name = "gridlines",
  ...
)

grid.gridlines(...)

Arguments

xy.axes

The axes definition produced by chartdesigner:::axesGrob()$xy.axes

at

A list of length 2 containing the locations where the grid lines should be drawn. The first list component contains the values on the x axis (for vertical grid lines). The second component the values on the y axis (for horizontal grid lines).

lwd

Scalar or list of length 2 containig line width for grid lines

col

Scalar or list of length 2 containing color if the grid lines

lty

Scaler or list of length 2 containing the lty lint type parameter

vp

Viewport to draw to

name

name of the grob

...

Additional argument passed to gpar()

Value

A gTree that contains the gridlines grobs, under child names vertical and horizontal. A NULL component does not draw grid lines.


growthcharts/chartplotter documentation built on May 12, 2024, 8:43 a.m.