Learn R Programming

RSVGTipsDevice (version 1.0-7)

setSVGShapeURL: Set raw shape URL (XML text) for the next graphics shape drawn with the RSVGTips device.

Description

Set a URL to use as a hyperlink for the next graphics shape drawn with the RSVGTips device.

Usage

setSVGShapeURL(url, target=NULL, sub.special=TRUE)

Arguments

url
A full valid URL, e.g., "http://www.r-project.org"
target
The name of a target in the page - use "\_blank" to make the link open a new browser tab or window
sub.special
If TRUE, substitue XML encodings for special characters in url and target. If FALSE, it is possible to produce an invalid XML file by supplying a URL with special characters (i.e., "<", "="">", "&", and single- and double-quotes.)

Value

Returns an invisible NULL.

Details

This function sets a hyperlink that will be included in the SVG commands output for the next graphics shape drawn with RSVGTipsDevice.

See Also

RSVGTipsDevice

Examples

Run this code
## Not run: setSVGShapeURL("http://www.r-project.org")

Run the code above in your browser using DataLab