Learn R Programming

rvg (version 0.0.9)

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

Description

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

Usage

dsvg_view(code, ...)

Arguments

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

Examples

Run this code
if (require("htmltools")) {
  dsvg_view(plot(1:10))
  dsvg_view(hist(rnorm(100)))
}

Run the code above in your browser using DataLab