xmlSVG | R Documentation |
This is useful primarily for testing. Requires the xml2
package.
xmlSVG(code, ..., standalone = FALSE, height = 7, width = 7)
code |
Plotting code to execute. |
... |
Other arguments passed on to |
standalone |
Produce a standalone svg file? If |
height , width |
Height and width in inches. |
A xml2::xml_document
object.
if (require("xml2")) {
x <- xmlSVG(plot(1, axes = FALSE))
x
xml_find_all(x, ".//text")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.