Last data update: 2014.03.03
|
R: Access current SVG as a string.
Access current SVG as a string.
Description
This is a variation on svglite that makes it easy to access
the current value as a string.
Usage
svgstring(width = 10, height = 8, bg = "white", pointsize = 12,
standalone = TRUE)
Arguments
width |
Height and width in inches.
|
height |
Height and width in inches.
|
bg |
Default background color for the plot (defaults to "white").
|
pointsize |
Default point size.
|
standalone |
Produce a standalone svg file? If FALSE , omits
xml header and default namespace.
|
... |
Arguments passed on to svglite .
|
Value
A function with no arguments: call the function to get the
current value of the string.
Examples
s <- svgstring(); s()
plot.new(); s();
text(0.5, 0.5, "Hi!"); s()
dev.off()
s <- svgstring()
plot(rnorm(5), rnorm(5))
s()
dev.off()
Results
|