Learn R Programming

svglite (version 1.0.0)

svglite: An SVG Graphics Driver

Description

This function produces graphics compliant to the current w3 svg XML standard. The driver output is currently NOT specifying a DOCTYPE DTD.

Usage

svglite(file = "Rplots.svg", width = 10, height = 8, bg = "white",
  pointsize = 12, standalone = TRUE)

Arguments

file
the file where output will appear.
height, width
Height and width in inches.
bg
Default background color for the plot (defaults to "white").
pointsize
default point size.
standalone
Produce a standalone svg file? If FALSE, omits xml header and default namespace.

References

W3C Scalable Vector Graphics (SVG): http://www.w3.org/Graphics/SVG/Overview.htm8

See Also

pictex, postscript, Devices

Examples

Run this code
svglite()
plot(1:11,(-5:5)^2, type='b', main="Simple Example")
dev.off()

Run the code above in your browser using DataLab