| ps.end | R Documentation |
Closes the PostScript or PDF file
(postscript,pdf), openend by a previous
ps.do (or pdf.latex, or ...) call, using
dev.off, and additionally opens a previewer for that
file, unless the previewer is already up. This almost provides
an ‘interactive’ device (like x11) for
postscript or pdf.
ps.end(call.gv= NULL, command = getOption("eps_view"),
debug = getOption("verbose"))
pdf.end(call.viewer= NULL, command = getOption("pdfviewer"),
debug = getOption("verbose"))
call.gv, call.viewer |
logical, indicating if the postscript or
acrobat reader (e.g., ghostview or |
command |
character, giving a system command for PostScript previewing.
By default, |
debug |
logical; if |
Depends on Unix tools, such as ps.
Martin Maechler
postscript, postscript
pdf.do, ps.do,
...
if(interactive()
) {
myPS <- tempfile("ex", fileext = ".ps")
ps.do(myPS)
data(sunspots)
plot(sunspots)
ps.end()
tempfile("ex-sun", fileext = ".pdf") -> myPDF
pdf.latex(myPDF)
plot(sunspots)
pdf.end(call. = FALSE) # basically the same as dev.off()
}
ps.latex(tempfile("ex2", fileext = ".eps"))
plot(sunspots)
ps.end(call.gv = FALSE) # basically the same as dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.