Display the baseline, current and diff images of an odiff_run() result
in the current graphics device, using base graphics.
Arguments
- x
An
odiff_resultobject returned byodiff_run().- which
Which image(s) to show:
"all"(default) shows the baseline, current and diff images side by side;"diff","baseline"or"current"show a single image.- ...
Currently unused.
Details
PNG images are read with png::readPNG() (the png package must be
installed). Other formats (JPEG, WEBP, TIFF, ...) are read with the
magick package if it is installed.
A diff image is only available when the comparison was run with
diff_output and the images differ; otherwise the diff panel says
"No diff image".
The graphical parameters (par()) are restored on exit.
For data-frame results of compare_images() or a row of a batch, use
diff_image() to get the diff image.
