write_svg | R Documentation |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.