This is the default SVG writer for vdiffr test cases. It uses embedded versions of svglite, harfbuzz, and the Liberation and Symbola fonts in order to create deterministic SVGs.
write_svg(plot, file, title = "")
plot | A plot object to convert to SVG. Can be a ggplot2 object, a recorded plot, or any object with a print() method. |
---|---|
file | The file to write the SVG to. |
title | An optional title for the test case. |