Re: [Rd] "Too many raster images" in devPS.c

From: Paul Murrell <>
Date: Thu, 28 Jan 2010 14:44:30 +1300


Wolfgang Huber wrote:
> Hi,
> I am finding the recently added [1] functionality of embedding raster
> images into plots on R devices very useful! Thanks to Paul Murrell and
> others for providing that. I noted that in
> a macro is defined: #define MAX_RASTERS 64, and consequently, I get
> Error in"L_raster", x$raster, x$x, x$y, x$width,
> x$height, :

> Too many raster images
> even for relatively innocent graphics, such as extensions of [2] (which
> I made with Bioconductor's "splots" package). Besides that, I imagine
> that raster images could be useful as 'glyphs' in various types of plots.
> Besides the not so helpful option of patching that macro in my private
> copy of R, is there an intention to extend this functionality to
> accommodate for larger plots more generally?

A simple solution (given the current implementation) would be to allow the user to specify the max number of raster images when starting a PDF file, e.g., ...

pdf("plotwithlotsofimages.pdf", maxRaster=1024)

Would that suffice?


> [1]
> [2]
> Thank you and best wishes,
> Wolfgang
> --
> Wolfgang Huber
> ______________________________________________
> mailing list

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

______________________________________________ mailing list
Received on Thu 28 Jan 2010 - 01:49:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 28 Jan 2010 - 20:40:17 GMT.

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

list of date sections of archive