R: Run plotting code and open svg in OS/system default svg...

editSVG {svglite} | R Documentation

## Run plotting code and open svg in OS/system default svg viewer or editor.

### Description

This is useful primarily for testing or post-processing the SVG.

### Usage

    editSVG(code, ..., width = NA, height = NA)

### Arguments

`code` | Plotting code to execute.
`...` | Other arguments passed on to `svglite`.
`width` | Height and width in inches.
`height` | Height and width in inches.

### Examples

    if (interactive()) {
      editSVG(plot(1:10))
      editSVG(contour(volcano))
    }

[Package svglite version 2.0.0 Index]