write_svg

0th

Percentile

Default SVG writer

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.

Aliases
  • write_svg
Documentation reproduced from package vdiffr, version 0.3.0, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.