Package 'RSvgDevice'

Title: An R SVG Graphics Device
Description: A graphics device for R that uses the w3.org xml standard for Scalable Vector Graphics. Compatibility updates by Renova.
Authors: T Jake Luciani <[email protected]>, Matthieu Decorde <[email protected]>, Vaudor Lise <[email protected]>
Maintainer: Matthieu Decorde <[email protected]>
License: GPL (>= 2)
Version: 0.6.4.4.9002
Built: 2026-11-13 19:57:45 UTC
Source: https://github.com/renova-r/RSvgDevice

Help Index


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

Author(s)

This driver was written by T Jake Luciani [email protected] 2012: updated by Matthieu Decorde [email protected]

References

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

See Also

pictex, postscript, Devices.

Examples

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