Skip to contents

Create an SVG backend device

Usage

device_svg()

Value

A device_backend object that accumulates SVG output. After rendering, call @svg() to retrieve the SVG string, or @save(path) to write to file.

Examples

dev <- device_svg()
render_scene(my_scene, dev)
#> Error: object 'my_scene' not found
cat(dev@svg())
#> Error in dev@svg: no applicable method for `@` applied to an object of class "list"