This function produces SVG files (compliant to the current w3 svg XML standard) where elements can be made interactive.
dsvg(file = "Rplots.svg", width = 6, height = 6, bg = "white",
pointsize = 12, standalone = TRUE, canvas_id = "svg_1",
fonts = list())
the file where output will appear.
Height and width in inches.
Default background color for the plot (defaults to "white").
default point size.
Produce a stand alone svg file? If FALSE
, omits
xml header and default namespace.
svg id within HTML page.
Named list of font names to be aliased with
fonts installed on your system. If unspecified, the R default
families sans
, serif
, mono
and symbol
are aliased to the family returned by match_family()
.
# NOT RUN {
dsvg()
plot(rnorm(10), main="Simple Example", xlab = "", ylab = "")
dev.off()
# }
Run the code above in your browser using DataLab