Learn R Programming

svglite (version 1.0.0)

editSVG: 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, ...)

Arguments

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

Examples

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

Run the code above in your browser using DataLab