This is useful primarily for testing but can be used as an alternative to svgstring().
svgstring()
stringSVG(code, ...)
Plotting code to execute.
Other arguments passed on to svglite.
svglite
stringSVG(plot(1:10))
Run the code above in your browser using DataLab