Re: [R] embed image (png) in postscript (device)

From: Paul Murrell <>
Date: Mon 04 Sep 2006 - 00:35:49 GMT


Hans-Peter wrote:
> Hi,
> I output multiple "grid-package-based" plots to the postscript device.
> Because the graphics are complicated and consists of a lot of datapoints
> (~200'000) the files become really big. To avoid this big files and to
> shorten the creation, I currently print the plots to the png device and
> manually combine them into one multipaged pdf document.

If you want to automate combining png files into a single pdf, you could take a look at ImageMagick.


> My question is, it is possible to do this in R directly?
> Probably I would have to create a png plot first, then reimport it into R
> and "put" it on the ps device. Is this a realistic way (in principle) ?
> If there is no package to read png files (I didn't find anything), I
> probably could solve this. But I still don't know if it would be possible to
> "put" this memory representation to a ps device.
> Thanks for your time.

Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
New Zealand
64 9 3737599 x85392

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Sep 04 10:39:21 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 07 Sep 2006 - 07:51:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.