Learn R Programming

RSvgDevice (version 0.6.4.4)

devSVG: A SVG Graphics Driver

Description

This function produces graphics suitable the current w3 svg XML standard

Usage

devSVG(file = "Rplots.svg", width = 10, height = 8, bg = "white", fg = "black", onefile=TRUE, xmlHeader=TRUE)

Arguments

file
the file where output will appear.
width
The width of the plot in inches.
height
the height of the plot in inches.
bg
the background color for the plot.
fg
the foreground color for the plot.
onefile
merge plot calls into onefile or separate them to separate pages.
xmlHeader
Print XML header or not.

Details

This driver currently does not have any font metric information, so the use of plotmath is not supported.

The driver output is currently NOT specifying a DOCTYPE DTD

References

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

See Also

pictex, postscript, Devices.

Examples

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

Run the code above in your browser using DataLab