This is useful primarily for testing. Requires the htmltools
package.
Arguments
- code
Plotting code to execute.
- ...
Other arguments passed on to
svglite
.
Examples
if (interactive() && require("htmltools")) {
htmlSVG(plot(1:10))
htmlSVG(hist(rnorm(100)))
}