vdiffr (version 0.3.2)

write_svg: Default SVG writer

Description

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.

Usage

write_svg(plot, file, title = "")

Arguments

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.