svg_equal: Compare two SVG images.

Description Usage Arguments Value

Description

SVG images are processed in this package as base64-encoded, XML text data. When produced, certain differences are introduced in XML attributes that have no effect on the final plots. That is why, however, SVG plots need to be compared graphically and not textually. This function produces a thumbnail of each SVG image and then compares the raster graphic.

Usage

1
svg_equal(a, b)

Arguments

a

First SVG image.

b

Second SVG image.

Value

TRUE if SVGs are the same plot-wise.


lbartnik/experiment documentation built on May 20, 2019, 8:27 p.m.