next up previous
Next: Saving graphics in other Up: Graphics and output Previous: Saving graphics as postscript


Saving graphics as pdf files in R

To save a graphic as a pdf file:
>pdf(file.pdf,width=6,height=4,paper='special')
... graphics code ...
>dev.off()

This is very useful when one is using pdflatex to compile your latex, as pdflatex cannot handle ps files.

Keywords: R, pdf graphics, save, files

Last modified 4/2/06.



Chris Paciorek 2012-01-21