Description Usage Arguments Details Value Author(s) See Also Examples
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.
1 2 |
theplot |
An object representing the plot. This can either be an
|
file |
The basename of the file to be produced. A suitable suffix of
|
type |
A character vector in which each entry represents one device to be
used.
Allowed values are |
size |
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
devices' |
prepare |
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
with commas.
invisible()
Lutz Prechelt prechelt@inf.fu-berlin.de
a.resetplotparams
,
dev.cur
,
dev.copy2eps
,
postscript
,
pdf
,
png
,
jpeg
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.