From whuber at embl.de  Sat Jan 16 19:08:32 2010
From: whuber at embl.de (Wolfgang Huber)
Date: Sat, 16 Jan 2010 19:08:32 +0100
Subject: [Rd] "Too many raster images" in devPS.c
Message-ID: <4B5200A0.7080503@embl.de>

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 
https://svn.r-project.org/R/trunk/src/library/grDevices/src/devPS.c
a macro is defined: #define MAX_RASTERS 64, and consequently, I get

Error in grid.Call.graphics("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?

[1] http://developer.r-project.org/Raster/raster-RFC.html
[2] http://www.ebi.ac.uk/~huber/pub/Druggable_ratio_1_before.pdf

Thank you and best wishes,
      Wolfgang

--
Wolfgang Huber
EMBL
http://www.embl.de/research/units/genome_biology/huber/contact



[Rd] "Too many raster images" in devPS.c
Wolfgang Huber