Description Usage Arguments Details Value Author(s) See Also Examples
Save the contents of the current graphics device to file
1 2 3 4 |
fn |
character: name of the output file (without extension).
An extension |
dir |
character: directory to which the file should be written. |
width |
numeric: width of the image in pixels (png) or inches (pdf, eps). |
asp |
numeric: aspect ratio; height=width*asp. |
density |
pixels per inch (see Details). |
keeppdf |
Should the intermediate PDF file (see Details)
be kept? If |
... |
Further arguments that are passed on to |
The functions are called for their side effect, writing a graphics file.
savepdf
, savepng
, and saveeps
use the
devices pdf
, png
, and
postscript
, respectively.
There is currently no TIFF device for R, so savetiff
works differently. It relies on the external tool convert
from
the ImageMagick software package. First, savetiff
produces
a PDF files with savepdf
, then uses system
to
invoke convert
with the parameter density
.
savetiff
does not check for the existence of
convert
or the success of the system call, and returns silently
no matter what.
Character: name of the file that was written.
Wolfgang Huber http://www.dkfz.de/abt0840/whuber
dev.copy
,
pdf
, png
,
postscript
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.