Skip to contents

The save_as_svg function takes a screenshot of a htmlwidget as a SVG image.

Usage

save_as_svg(widget, filepath, background = "white", delay = 0.5)

Arguments

widget

a htmlwidget

filepath

a filepath where to save the file

background

the background color underneath/behind the htmlwidget

delay

a delay (in seconds) to wait before taking the screenshot