R: Associate a hyperlink with a grid grob

grid.hyperlink {gridSVG} | R Documentation

## 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 `grid.export`, to produce an SVG document with hyperlinked graphical elements.

### Usage

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

### Arguments

`x` | A grob to add a hyperlink to.
`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"` to open the link in the current window/tab.
`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.
`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.

### Value

A linked.grob object.

### Author(s)

Paul Murrell

### See Also

`grid.export`

[Package gridSVG version 1.6-0 Index]