This is useful primarily for testing. Requires the htmltools package.
htmltools
htmlSVG(code, ...)
Plotting code to execute.
Other arguments passed on to svglite.
svglite
# NOT RUN { if (require("htmltools")) { htmlSVG(plot(1:10)) htmlSVG(hist(rnorm(100))) } # }
Run the code above in your browser using DataLab