write_svg: Default SVG writer

View source: R/svg.R

write_svgR Documentation

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.


vdiffr documentation built on Oct. 31, 2024, 5:08 p.m.