Description Usage Arguments Value Author(s) References See Also Examples
This makes an SVG element "clickable" via a hyperlink which will view the URL.
1 |
n |
the XML/SVG node |
url |
the target of the link |
addArea |
a logical value indicating whether to create a new
rectangle node as the area the link will be active and put the existing contents of
|
css |
the CSS content (file or string) to add to the document if style is not an inlined CSS style but the name of a CSS class. |
style |
a character string giving the name of the CSS class to
use for any new SVG element that might be added to represent the
event area, i.e. if a rectangle is added to "enclose" text or a
phrase.
This can be be either a class name or an inline CSS specification
of the form "name: value; name: value; ...".
To remove any ambiguity about whether it is a class name or inine
specfication of CSS values, one can use |
silent |
a logical controlling whether |
... |
additional parameters for methods |
The newly created link node, i.e. the <a xlink:href="..">
element.
The return value is typically not important as the node has been added to the document.
Duncan Temple Lang
The SVG specification http://www.w3.org/Graphics/SVG/
1 2 3 4 5 6 7 8 9 | doc = svgPlot(plot(1:10, main = "The SVGAnnotation Package"))
nodes = getAxesLabelNodes(doc)
addLink(nodes, c("http://ww.r-project.org",
"http://www.omegahat.org",
"http://www.omegahat.org/SVGAnnotation"))
nodes = getPlotPoints(doc)
addLink(nodes,
paste("http://ww.r-project.org", seq(along = nodes), sep =""))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.