Re: [R-sig-Geo] using 'mask' versus 'crop' in raster

2015-08-10 Thread Travis Belote
That appears to be the problem. Thank you for your time responding! I’m still relatively new to R… or at least I’m still learning some of these basic ways of trouble-shooting issues. I greatly appreciate your help! FYI I had Hmisc loaded, which was causing the problem. I will know to check this

Re: [R-sig-Geo] using 'mask' versus 'crop' in raster

2015-08-10 Thread Matt Strimas-Mackey
Seems like you may have some other function called mask either defined by you or in another package loaded after raster. A couple things you could check: -just type "mask" (without quotes) in the console. The first line should say something like: standardGeneric for "mask" defined from package "ras

[R-sig-Geo] using 'mask' versus 'crop' in raster

2015-08-10 Thread Travis Belote
Hi all, I am trying to extract a raster layer of data to a specific region defined by a shapefile. In Arc I would do this using "extract by mask" and have had some luck using "mask" in the raster package. I am able to consistently use "crop" to limit the extent of the raster data, but I cannot

Re: [R-sig-Geo] spplot grid data - scale colours customizing

2015-08-10 Thread Edzer Pebesma
On 08/03/2015 09:41 AM, pierluigi de rosa wrote: > Dear All, > > I'm trying to understand how spplot work with colour managing with gridded > data. > > I have na Object of class SpatialGridDataFrame > Coordinates: > min max > x 2267600 2325600 > y 4693800 4826200 > Is projected: TRUE

Re: [R-sig-Geo] getosm.RData

2015-08-10 Thread Roger Bivand
On Mon, 10 Aug 2015, Jaime Lopez Carvajal wrote: Hi all, I am following the exercises from book "Spatial Data Analysis with R" but I can not find this file in my system or internet... how can I resolve this issue? Download: http://www.asdar-book.org/bundles2ed/die_bundle.zip as is explaine

[R-sig-Geo] getosm.RData

2015-08-10 Thread Jaime Lopez Carvajal
Hi all, I am following the exercises from book "Spatial Data Analysis with R" but I can not find this file in my system or internet... how can I resolve this issue? load("getosm.RData") Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection In addition: Warning message: In read

Re: [R-sig-Geo] Modeling areal data with lots of holes, islands

2015-08-10 Thread Thierry Onkelinx
Dear Tim, I assume that you know the location of all counties. Then you could make a graph of the counties based on the neighbours of each county. Use that graph in INLA to estimate the random effect of county. It can handle the counties without data. Let's say that you have a simple graph: A - B

[R-sig-Geo] Union/Overlay single spatialPolygonsDataFrame containing overlapping polygonsto create polygons with all unique combinations of attributes

2015-08-10 Thread nevil amos
I am attempting to combine overlapping polygons in a single spatialPolygonsDataFrame so that the output is a set of polygons such that where there is no overlap one polygon, of the non-intersecting area will be formed, and retain the attributes of the original polygon. where polygons intersect ne