dsvg

0th

Percentile

SVG Graphics Driver

This function produces SVG files (compliant to the current w3 svg XML standard) where elements can be made interactive.

Keywords
device
Usage
dsvg(file = "Rplots.svg", width = 6, height = 6, bg = "white",
  pointsize = 12, standalone = TRUE, canvas_id = 1,
  fontname_serif = "Times New Roman", fontname_sans = "Calibri",
  fontname_mono = "Courier New", fontname_symbol = "Symbol")
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 stand alone svg file? If FALSE, omits xml header and default namespace.
canvas_id
svg id within HTML page.
fontname_serif, fontname_sans, fontname_mono, fontname_symbol
font names for font faces. Used fonts should be available in the operating system.
Details

Graphic elements are made interactive with jQuery code. To embed an interactive svg file into a web page, check that jQuery javascript file is included.

See Also

Devices, dml_docx, dml_pptx

Aliases
  • dsvg
Examples
dsvg()
plot(rnorm(10), main="Simple Example", xlab = "", ylab = "")
dev.off()
Documentation reproduced from package rvg, version 0.0.5, License: GPL-3

Community examples

Looks like there are no examples yet.