Save a Draw Widget to a File
save_drawing.RdExports a widget created by draw() (or any of the draw_*
functions) to a static file. Currently supports .svg via Node.js
server-side rendering. Requires a node binary on PATH.
Arguments
- widget
htmlwidget: A widget returned by
draw()or adraw_*function.- filename
Character: Output file path. Extension determines the format.
- width
Numeric: Image width in pixels.
- height
Numeric: Image height in pixels.