[R-sig-Geo] bug in plotting rasterLayer?

Pascal Title ptitle at umich.edu
Tue Apr 11 19:33:00 CEST 2017


Hi,

I found that when I try to plot 3 rasters on top of each other, the third
raster plot causes the plot device coordinates to shift to the right.

I can reproduce this error easily:

library(raster)
f <- system.file("external/test.grd", package="raster")
r <- raster(f)

plot(r)

plot(r, add=TRUE)
plot(r, add=TRUE)
plot(r, add=TRUE)

For me, the 3rd plot with add=TRUE causes a coordinate system shift.

I am running R v3.3.3 with raster package v2.5-8.

Are others finding the same thing?

-- 
Pascal Title
PhD candidate | Rabosky Lab <http://www.raboskylab.org/>
Dept of Ecology and Evolutionary Biology
University of Michigan
ptitle at umich.edu

pascaltitle.weebly.com

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list