htmlSVG | R Documentation |
This is useful primarily for testing. Requires the htmltools
package.
htmlSVG(code, ...)
code |
Plotting code to execute. |
... |
Other arguments passed on to |
if (interactive() && require("htmltools")) {
htmlSVG(plot(1:10))
htmlSVG(hist(rnorm(100)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.