On all platforms, you can generate PDF files directly using pdf(), or copy your graph from a screen device to a PDF file using dev.copy2pdf(). On Windows and Mac OS X, you can save your graphs directly from the windows() or quartz() screen devices to PDF files. Last but not least, you can easily export several graphs into a single PDF file. Each graph will be rendered on a separate page in the document.