This function produces graphics compliant to the current w3 svg XML standard. The driver output is currently NOT specifying a DOCTYPE DTD.
The file where output will appear.
Height and width in inches.
Default background color for the plot (defaults to "white").
Default point size.
Produce a standalone svg file? If
A list containing web fonts to use in the SVG. The fonts
will still need to be available locally on the computer running the code,
but viewers of the final SVG will not need the font if specified as a web
font. Web fonts can either be specified using
A character vector of ids to assign to the generated SVG's. If creating more SVG files than supplied ids the exceeding SVG's will not have an id tag and a warning will be thrown.
Should the width of strings be fixed so that it doesn't
change between svg renderers depending on their font rendering? Defaults to
A scaling factor to apply to the rendered line width and text size. Useful for getting the right sizing at the dimension that you need.
Should the svgfile be a valid svg file while it is being
written to? Setting this to
svglite provides two ways of controlling fonts: system fonts
aliases and user fonts aliases. Supplying a font alias has two
effects. First it determines the
font-family property of all
text anchors in the SVG output. Secondly, the font is used to
determine the dimensions of graphical elements and has thus an
influence on the overall aspect of the plots. This means that for
optimal display, the font must be available on both the computer
used to create the svg, and the computer used to render the
svg. See the
fonts vignette for more information.
W3C Scalable Vector Graphics (SVG): http://www.w3.org/Graphics/SVG/