svgstring | R Documentation |
This is a variation on svglite
that makes it easy to access
the current value as a string.
svgstring(
width = 10,
height = 8,
bg = "white",
pointsize = 12,
standalone = TRUE,
system_fonts = list(),
user_fonts = list(),
web_fonts = list(),
id = NULL,
fix_text_size = TRUE,
scaling = 1
)
See svglite()
documentation for information about
specifying fonts.
A function with no arguments: call the function to get the current value of the string.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.