Re: [R-sig-Geo] 3rd+ rasters added using plot(r, add=TRUE) are misregistered

2013-12-05 Thread GD
Good catch. I have no solution -- but I get the same problem on an earlier version of R in a different environment (so it is not just because of your setup). My session info is below. Cheers, Gareth. sessionInfo() R version 3.0.1 (2013-05-16) Platform: x86_64-unknown-linux-gnu (64-bit)

Re: [R-sig-Geo] 3rd+ rasters added using plot(r, add=TRUE) are misregistered

2013-12-05 Thread Michael Sumner
I just wonder if this is related to an existing resize problem when overplotting? I see this on the windows() graphics device, you need to try these two sets of plot commands and resize the window (especially stretch it in one direction) to see the problem at ## 1 and ## 2 v - list(x = seq(0, 1,

Re: [R-sig-Geo] 3rd+ rasters added using plot(r, add=TRUE) are misregistered

2013-12-05 Thread Josh O'Brien
Hi Michael, Thanks for those thoughts. The issue you raise (which has bit me before as well) appears to be unrelated. In particular, your resizing issue disappears if one sets useRaster=FALSE, whereas my problem persists whether or not rasterImage() is used to draw the raster. Try this to get a

Re: [R-sig-Geo] 3rd+ rasters added using plot(r, add=TRUE) are misregistered

2013-12-05 Thread Michael Sumner
Interesting and difficult! Thanks for pointing out the useRaster difference, I had mixed up TRUE/FALSE in my original report (offlist) on that one. That might help me find the solution, though sorry I have nothing for your issue. :) Cheers, Mike. On Fri, Dec 6, 2013 at 11:58 AM, Josh O'Brien

[R-sig-Geo] 3rd+ rasters added using plot(r, add=TRUE) are misregistered

2013-12-03 Thread Josh O'Brien
Hi all, Briefly, running the following code will not produce a single grey ring, as would be expected. The first three raster layers all stack up neatly, but the 4th and subsequent raster layers are all shifted/skewed to the right. It appears that the plotting engine loses track of the fact that