From p.murrell at auckland.ac.nz  Thu Jan 28 22:53:07 2010
From: p.murrell at auckland.ac.nz (Paul Murrell)
Date: Fri, 29 Jan 2010 10:53:07 +1300
Subject: [Rd] "Too many raster images" in devPS.c
In-Reply-To: <071266C9-38FB-4B81-8D62-0ED933CB73AB@embl.de>
References: <4B5200A0.7080503@embl.de> <4B60EBFE.2020805@auckland.ac.nz>
	<071266C9-38FB-4B81-8D62-0ED933CB73AB@embl.de>
Message-ID: <4B620743.4030300@auckland.ac.nz>

Hi


Wolfgang Huber wrote:
> Hi Paul
> 
> from a user perspective, this sounds reasonable.


Cool.  That's now in r-devel.

Paul


>          Thank you very much, 
>                Wolfgang
> 
> 
> Il giorno Jan 28, 2010, alle ore 2:44 AM, Paul Murrell ha scritto:
> 
> 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 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?
> 
> 
> 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?
> 
> Paul
> 
> 
>> [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
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
> 

-- 
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/



[Rd] "Too many raster images" in devPS.c
Paul Murrell