powered by
This is useful primarily for testing. Requires the xml2 package.
xml2
xmlSVG(code, ..., standalone = FALSE, height = 7, width = 7)
A xml2::xml_document object.
xml2::xml_document
Plotting code to execute.
Other arguments passed on to svglite.
svglite
Produce a standalone svg file? If FALSE, omits xml header and default namespace.
FALSE
Height and width in inches.
if (require("xml2")) { x <- xmlSVG(plot(1, axes = FALSE)) x xml_find_all(x, ".//text") }
Run the code above in your browser using DataLab