RSVGTipsDevice.design {RSVGTipsDevice} | R Documentation |
The design of this driver is that it can be used with ordinary R plotting commands. The extra information needed for tooltips and hyperlinks is supplied by a call to a separate function call before the call to the plotting function that generates the shape. Extra information for only one shape can be supplied this way, so shapes that have tooltips or hyperlinks must be drawn one at a time.
It appears that preferred SVG coding styles have changed over time. The defaults in this driver are those suggested at http://jwatt.org/svg/authoring/.
In particular:
<circle fill="red" stroke="blue" ... />
over this:
<circle style="fill:red; stroke:blue;" ... />
.
getElementsByTagNameNS
instead of getElementsByTagName
(see also "SVG: Namespace Crash Course" in the references).
plotmath
is not supported.
dev.copy
- the functions to add tool tips and
hyperlinks are ignored by other devices.
SVG_footer()
in src/devSVG.c
) - currently the vertical
spacing (the 'height' and 'y' attributes) is somewhat ad-hoc (coded
by trial and error, and may not work for all font sizes).
plotmath
.
&\#x3b1;
.
The symbols for Unicode are described here:
http://www.unicode.org/charts/symbols.html.
www Consortum W3C Scalable Vector Graphics (SVG) http://www.w3.org/Graphics/SVG/Overview.htm8
SVG authoring guidelines http://jwatt.org/svg/authoring
SVG: Namespaces Crash Course http://developer.mozilla.org/en/docs/SVG_Namespace_Tips_(external)
"SVG Essentials", J. David Eisenberg, O'Reilly and Associates, 2002.
Overview of the RSVGTips device.
Cairo
is another device for R that can produce SVG
graphics; see http://www.rforge.net/Cairo. However, it doesn't appear to support tooltips.