device {simsalapar} | R Documentation |
Cropping and Font Embedding PDF Device
Description
dev.off.pdf()
is a wrapper of dev.off()
which is
meant for closing a pdf device. It also performs
cropping and font embedding if chosen.
Usage
dev.off.pdf(file="Rplots.pdf", crop=NULL, embedFonts="", ...)
Arguments
file |
output file name including extension .pdf. |
crop |
cropping command, can be one of: |
embedFonts |
font embedding command, can be one of: |
... |
additional arguments passed to |
Value
invisible()
.
Author(s)
Marius Hofert
See Also
dev.off()
for closing a device,
embedFonts()
for font embedding.
sfsmisc's pdf.end()
for another approach.
Examples
## typical usage
doPDF <- !dev.interactive(orNone=TRUE)
if(doPDF) pdf(file=(file <- "crop_device.pdf"), width=6, height=6)
plot(1)
if(doPDF) dev.off.pdf(file)
if(file.exists(file)) file.remove(file)
[Package simsalapar version 1.0-12 Index]