| gdiffDevice | R Documentation |
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().
pngDevice(...)
pdfDevice(...)
postscriptDevice(...)
cairo_pdf_device(suffix=".cairo.pdf", ...)
gdiffDevice(name, suffix=name, open,
close=function(dir, name) dev.off())
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. |
A "gdiffDevice" object, which may be used as the device
argument to gdiff.
Paul Murrell
gdiff.
f <- function() plot(1)
gdiff(f, device=pdfDevice(),
controlDir=file.path(tempdir(), "Control"),
testDir=file.path(tempdir(), "Test"),
compareDir=file.path(tempdir(), "Compare"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.