Re: [R-sig-Geo] Spatial Panel Multinomial Probit

2013-10-18 Thread Roger Bivand
Please do read Sarah Goslee's sensible reply to a different thread: https://stat.ethz.ch/pipermail/r-sig-geo/2013-October/019577.html see: https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20131017/8bacc39c/attachment.pl because the thread was in HTML. Although it is flattering that users

[R-sig-Geo] Any reason to not use brick() on a single-band raster?

2013-10-18 Thread Jonathan Greenberg
R-sig-geo'ers: I was curious: is there any practical reason to not use brick() on a single-band raster (efficiency hits, for instance)? The reason I'm asking is that I'm working on some functions that return a single or a multi-band output, and rather than doing an if(nlayers(x)==1) raster(x)

Re: [R-sig-Geo] Any reason to not use brick() on a single-band raster?

2013-10-18 Thread Robert J. Hijmans
Jonathan, I do not thing it would matter much. But there are a few functions that only work on for a RasterLayer (e.g. focal, distance); so you would need to coerce the object to a RasterLayer first to use these. The raster package started with RasterLayer and RasterStack. RasterBrick was added

[R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-10-18 Thread Waichler, Scott R
Hi, I've learned the basics of using RgoogleMaps and rasterVis, and now I want to combine their capabilities to use levelplot() with a georeferenced PNG image as a background in the lattice panel. And, I want to plot to the normal R graphics devices, not the web as package plotGoogleMaps

Re: [R-sig-Geo] Use a PNG image as background for lattice plotting with rasterVis

2013-10-18 Thread Ista Zahn
Hi Scott, You may be interested in the ggmap package; see http://journal.r-project.org/archive/2013-1/kahle-wickham.pdf Best, Ista On Fri, Oct 18, 2013 at 5:56 PM, Waichler, Scott R scott.waich...@pnnl.gov wrote: Hi, I've learned the basics of using RgoogleMaps and rasterVis, and now I want