stringSVG: Run plotting code and return svg as string

View source: R/inlineSVG.R

stringSVGR Documentation

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

stringSVG(plot(1:10))

svglite documentation built on Oct. 11, 2023, 9:06 a.m.