svglite (version 1.2.1)

stringSVG: Run plotting code and return svg as string

Description

This is useful primarily for testing but can be used as an alternative to svgstring().

Usage

stringSVG(code, ...)

Arguments

code

Plotting code to execute.

...

Other arguments passed on to svglite.

Examples

Run this code
# NOT RUN {
stringSVG(plot(1:10))
# }

Run the code above in your browser using DataCamp Workspace