Plot to multiple devices
Sends the same plot to one or several devices in a uniform manner. Helpful for preparing a script that can be configured to produce graphics in several different formats, e.g. small bitmaps for web pages, large bitmaps for slides, and pdf, eps or wmf for inclusion in documents.
An object representing the plot. This can either be an
The basename of the file to be produced. A suitable suffix of
A character vector in which each entry represents one device to be
Allowed values are
A numeric vector of 1 to 4 components to which missing values will be
added from the default value. Components 1 and 2 are width and height
(in inches) of the plot to be produced. They will be supplied to the
A function without parameters that will be called each time after a new device has been opened and before the plot is produced.
All further arguments will be handed over to each(!) of the device opening functions
The function uses
on.exit to close a device correctly even if
the plot function fails.
png is almost always preferable to jpeg.
Note that expressions can contain multiple calls by separating them
Lutz Prechelt firstname.lastname@example.org
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.