RSvgDevice: A SVG Graphics Driver

Description Usage Arguments Details Author(s) References See Also Examples

Description

This function produces graphics suitable the current w3 svg XML standard

Usage

1
2
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

Author(s)

This driver was written by T Jake Luciani jakeluciani@yahoo.com 2012: updated by Matthieu Decorde matthieu.decorde@ens-lyon.fr

References

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

See Also

pictex, postscript, Devices.

Examples

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

Example output

png 
  2 

RSvgDevice documentation built on May 2, 2019, 10:54 a.m.