Learn R Programming

gridSVG (version 0.8-0)

grid.garnish: Associate arbitrary SVG attributes with a grid grob

Description

Creates an svg.grob object which is a normal grid grob, with SVG attributes attached. Useful in conjunction with gridToSVG, to produce an SVG document with attributes that have no corresponding concept in grid graphics.

Usage

garnishGrob(x, ..., group=TRUE)
grid.garnish(path, ..., grep=FALSE, redraw=FALSE)

Arguments

x
A grob.
path
A grob path specifying a drawn grob.
...
Arbitrary SVG attribute settings.
group
A logical indicating whether the SVG attributes should be attached to the overall parent group for the relevant SVG element, or to individual SVG elements.
grep
A logical indicating whether to treat the path as a regular expression.
redraw
A logical indicating whether to redraw the current page.

Value

  • A garnished.grob object.

Details

The SVG attribute settings can be vectors (in the case of garnishing individual SVG elements) or even named vectors (if you want precise control over which attribute value is apportioned to which individual SVG element).

See Also

gridToSVG