R: Run plotting code and view svg in RStudio Viewer or web...

htmlSVG {svglite} | R Documentation

## Run plotting code and view svg in RStudio Viewer or web broswer.

### Description

This is useful primarily for testing. Requires the `htmltools` package.

### Usage

    htmlSVG(code, ...)

### Arguments

`code` | Plotting code to execute.
`...` | Other arguments passed on to `svglite`.

### Examples

    if (require("htmltools")) {
      htmlSVG(plot(1:10))
      htmlSVG(hist(rnorm(100)))
    }

[Package svglite version 1.2.2 Index]