gdiffDevice {gdiff} | R Documentation |
Define a Graphics Device for Generating Output
Description
Define the device to be used for generating graphical output files.
There are several predefined graphical devices, e.g.,
pngDevice()
, and further devices can be defined
using gdiffDevice()
.
Usage
pngDevice(...)
pdfDevice(...)
postscriptDevice(...)
cairo_pdf_device(suffix=".cairo.pdf", ...)
gdiffDevice(name, suffix=name, open,
close=function(dir, name) dev.off())
Arguments
name |
A name for the device (used by default for naming output files). |
suffix |
A suffix to be used for output files. |
open |
A function that opens a graphics device; this should open the device in such a way that multiple pages of graphical output will produce multiple files. |
close |
A function that closes the graphics device. |
... |
Further arguments typically used within the function that opens the device. |
Value
A "gdiffDevice"
object, which may be used as the device
argument to gdiff
.
Author(s)
Paul Murrell
See Also
Examples
f <- function() plot(1)
gdiff(f, device=pdfDevice(),
controlDir=file.path(tempdir(), "Control"),
testDir=file.path(tempdir(), "Test"),
compareDir=file.path(tempdir(), "Compare"))
[Package gdiff version 0.2-5 Index]