The function opens a PDF device with pdf
, executes the given
expressions, closes the PDF file and displays the file in a PDF viewer.
Arguments
- expressions
R expressions creating plots that are to be redirected into a pdf file. You may pass multiple expressions within opening and closing curly braces
- pdfFile
optional. Path to the PDF file to be created. The directory part of the path must exist. If not given or
NULL
, the PDF file is created in thetempdir()
folder.- ...
further arguments passed to
pdf