On Fri, 3 Oct 2008, Stefan Evert wrote:


I'm currently trying to export a couple of graphs to pdf . Postscript would be fine too, but I'm using odd page dimensions, which seem to be overwritten when using the "ps2pdf" command.

From what you wrote I guess that perhaps you don't really want unusual page dimensions, but rather Encapsulated PostScript files, which are automatically cropped to their bounding box and can be included as images in a latex document (using \includegraphics or such, so you could arrange the 6 graphs in a standard latex figure environment etc.; and, of course, there's no need to go through PDFs).

Hmm, that is equally true of PDF inclusion by pdftex. If the end product is a PDF file, working with PDF throughout is a better workflow.

If that's what you want to do, simply use dev.copy2eps(), setting width= and height= to the desired format of the plot and remembering to specify onefile=FALSE (that's a trap I keep falling into ...).

If you still need PDFs, use the "epstopdf" program for the conversion, because ps2pdf will usually mess up your bounding box and revert to a standard page size.

But we provide dev.copy2pdf() ....




Best regards,
Stefan Evert

[ [EMAIL PROTECTED] | http://purl.org/stefan.evert ]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

--
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to