From p.murrell at auckland.ac.nz  Wed Feb  9 04:04:18 2011
From: p.murrell at auckland.ac.nz (Paul Murrell)
Date: Wed, 9 Feb 2011 16:04:18 +1300
Subject: [Rd] using rasterImage within image
In-Reply-To: <AANLkTikZ2ktQ+AnyYeaYwuiRFiXB_xwHzEYc48X5m5eT@mail.gmail.com>
References: <4D51F2A7.8010505@mcmaster.ca>
	<AANLkTikZ2ktQ+AnyYeaYwuiRFiXB_xwHzEYc48X5m5eT@mail.gmail.com>
Message-ID: <4D520432.9050405@auckland.ac.nz>

Hi

On 9/02/2011 3:51 p.m., Michael Sumner wrote:
> Hello,
>
> There's a problem for rasterImage when used in SDI mode in Windows,
> which may be worth considering.
>
> https://stat.ethz.ch/pipermail/r-sig-geo/2010-July/008820.html
>
> I had off-list emails with Duncan Murdoch and Paul Murrell about this
> and they determined that it was in SDI only, and there's still no
> resolution for it as far as I know.  I checked in the latest dev build
> of 2.13.0 2011-02-04 r54221 just in case.

I committed a bug fix this morning (r54280), which improves Windows 
raster drawing for some simple test cases.  I'd love to know if that has 
had any effect on the problem that you reported.

Paul

> This has been in use in the derived function
> image.SpatialGridDataFrame in the sp package since rasterImage was
> released, the sp function incorporates a warning for users in SDI
> mode.
>
> Cheers, Mike.
>
> On Wed, Feb 9, 2011 at 12:49 PM, Ben Bolker<bbolker at gmail.com>  wrote:
>>
>>   Has anyone yet tried incorporating rasterImage into the base image()
>> function?  It seems to make a *huge* difference, with
>> a very small number of added/changed lines of code.  (Of course I have
>> barely tested it at all.)
>>   Is there any reason this *shouldn't* go into the next release?
>>
>>> source("image.R")
>>> z<- matrix(runif(1e6),nrow=1000)
>>> image(z)
>>> image(z,useRaster=TRUE)
>>
>>   (Patch against SVN 54284 attached; people can contact me if it doesn't
>> go through and they want it.)
>>
>>   Ben Bolker
>>
>>
>> ______________________________________________
>> 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] using rasterImage within image
Paul Murrell