Long time listener, first time caller
I see the same on Windows 7 64-bit, with 32-bit R and 64bit R. There's no need for the transpose/flip btw: image(volcano) but raster graphics don't product it, so it's the underlying image C code (which is rect under the hood) image(volcano, useRaster = TRUE) plot(0, xlim = c(0, 1), ylim = c(0, 1)) rasterImage((volcano - min(volcano, na.rm = TRUE)) / diff(range(volcano, na.rm = TRUE)), 0, 0, 1, 1, interpolate = FALSE) plot(0, xlim = c(0, 1), ylim = c(0, 1)) rasterImage((volcano - min(volcano, na.rm = TRUE)) / diff(range(volcano, na.rm = TRUE)), 0, 0, 1, 1) I'd like to investigate more, but will have to wait for now. Cheers, Mike.
On Fri, Jul 15, 2011 at 10:40 AM, Robert Hijmans <r.hijmans at gmail.com> wrote:
Lines appear to be a GUI issue, went back to 2.13.0 and plot of raster
looks fine. When plotting a Raster* object, raster calls the 'image' function. spplot uses 'levelplot'. Both are affected by these white lines in R 2.13.1 on Windows, I think (anyone seeing this on Mac or Linux? or not seeing this on Windows?). Here is a simple test: image(t(volcano)[ncol(volcano):1,]) In some cases there are only lines such that it seems that there are no data values. I would expect that this will be fixed soon, but I am changing 'raster' so that the next version calls 'rasterImage' (which is not affected and should be more efficient) in stead of 'image'. Please correct me if I am wrong, but I think that for now one should not use R 2.13.1 on Windows (and perhaps other OSs) if you want to plot raster data. Robert
sessionInfo()
R version 2.13.1 (2011-07-08) Platform: i386-pc-mingw32/i386 (32-bit) -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Long-time-listener-first-time-caller-tp6585078p6585499.html Sent from the R-sig-geo mailing list archive at Nabble.com.
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Michael Sumner Institute for Marine and Antarctic Studies, University of Tasmania Hobart, Australia e-mail: mdsumner at gmail.com