Learn R Programming

gridSVG (version 1.0-0)

grid.hyperlink: Associate a hyperlink with a grid grob

Description

Creates a linked.grob object which is a normal grid grob, with a hyperlink attached. Useful in conjunction with gridToSVG, to produce an SVG document with hyperlinked graphical elements.

Usage

grid.hyperlink(path, href, show, group, grep)

Arguments

path
A grob path specifying a drawn grob.
href
A valid Xlink URI. Can be a vector of several links (see group argument below).
show
A character vector specifying how the link should be opened. NULL and "" will avoid adding an attribute. The most common cases are to use "new" to open a link in a new window/tab, or "replace"
group
A logical indicating whether the hyperlinks should be attached to the overall parent group for the relevant SVG element, or to individual SVG elements.
grep
Whether the path should be treated as a regular expression.

Value

  • A linked.grob object.

synopsis

hyperlinkGrob(x, href, show=NULL, group=TRUE) grid.hyperlink(path, href, show=NULL, group=TRUE, grep=FALSE)

See Also

gridToSVG