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

Description Usage Arguments Details Value Author(s) See Also

View source: R/attrib.R

Description

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

Usage

1
2
3
garnishGrob(x, ..., group=TRUE)
grid.garnish(path, ..., group=TRUE, redraw=FALSE,
             strict = FALSE, grep=FALSE, global=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.

redraw

A logical value to indicate whether to redraw the grob.

strict

A boolean indicating whether the path must be matched exactly.

grep

Whether the path should be treated as a regular expression.

global

A boolean indicating whether the function should affect just the first match of the path, or whether all matches should be affected.

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).

Value

A garnished.grob object.

Author(s)

Paul Murrell

See Also

grid.export


gridSVG documentation built on Nov. 17, 2017, 7 a.m.