gridToSVG(name = "Rplots.svg",
export.coords = c("file", "inline", "none"),
export.js = c("file", "inline", "none"),
res = NULL,
indent = TRUE,
xmldecl = xmlDecl()) If this parameter is NULL or "", a list
containing the SVG document, coordinate information, and JavaScript
utility functions are returned.
none a coordinates file is exported. If this parameter is file, the coordinates information is
written to a file, while inline will include the contents
within the SVG document.
none a JavaScript file is written out.
This contains useful functions for manipulating gridSVG plots in the
browser, including unit conversion functions. If this parameter is file, the JavaSc
If NULL, this is automatically calculated to be the
resolution of the current device. Typically the PDF device would be
used, and this uses a resolution of 72, i.e. 72 DPI.
Indentation makes the document more readable, but when indent
is set to FALSE, parsing the SVG in JavaScript is easier
beca
By default this parameter simply declares that the document is XML version 1.0, along with the character encoding that was used to export the SVG document.
name has a valid filename, nothing is returned.
The side effect is to produce an SVG file of the specified name,
AND a very rudimentary HTML file with the SVG document embedded.Optionally a JavaScript file containing coordinate transformation information is also exported.
Optionally a JavaScript file containing utility JavaScript functions is also exported.
When name has a filename with zero characters, a named list is
returned with three elements. svg is the SVG root node (and all
its children, see the XML package for more information on how to use
this. coords contains the list of coordinate information for
exported viewports. utils is a character vector containing
JavaScript code to manipulate gridSVG plots in the browser.
grid.hyperlink, grid.animate