[R-sig-Geo] Generating heat map on google based on values

2015-07-12 Thread Harsh Pensi
Hello Given a set of geographic coordinates and values associated with those points, i want to interpolate data and generate heat map on google maps with colors based on the values. Can you guide me to some R examples that achieve this? I have to create this from scratch...the data I have is like

[R-sig-Geo] creating STFDF or ST objects in R

2015-07-12 Thread joke atuge via R-sig-Geo
Hello, I am having serious issues creating a space time object with a list of spatialpolygonsdataframes and their dates/ time. I keep getting an error about the time not changing. How can I get this done please? Here's a sample of my data: [[1]] class : SpatialPolygonsDataFrame features

[R-sig-Geo] Assign values of empty matrix to a raster layer in R

2015-07-12 Thread Ashraf Afana
Hi, I'm trying to apply a conditional statement to three raster layers using the following function: Con = function (condition, trueValue, falseValue){ return(condition*trueValue + (!condition)*falseValue) } A priori I've generated an empty matrix (r4) that match the other two raster layers.

Re: [R-sig-Geo] creating STFDF or ST objects in R

2015-07-12 Thread Edzer Pebesma
On 07/12/2015 07:08 PM, joke atuge via R-sig-Geo wrote: > Hello, > I am having serious issues creating a space time object with a list of > spatialpolygonsdataframes and their dates/ time. I keep getting an error > about the time not changing. How can I get this done please? Here's a sample >

Re: [R-sig-Geo] creating STFDF or ST objects in R

2015-07-12 Thread joke atuge via R-sig-Geo
Hello, This is in addition to my earlier message. Here's the sample codes oh how I tried to create the STFDF. DLF is a list of variables called "FRP"  for each polygon in the DL3 list. Timex is the time list for the spatial polygons list.  DL7 <- sapply(1:length(DL3), function(i) {   x <- DL3[[i

Re: [R-sig-Geo] creating STFDF or ST objects in R

2015-07-12 Thread Edzer Pebesma
On 07/12/2015 10:16 PM, joke atuge via R-sig-Geo wrote: > Hello, This is in addition to my earlier message. Here's the sample codes oh > how I tried to create the STFDF. DLF is a list of variables called "FRP" for > each polygon in the DL3 list. Timex is the time list for the spatial polygons

Re: [R-sig-Geo] Assign values of empty matrix to a raster layer in R

2015-07-12 Thread John Baumgartner
A reproducible example would help us understand your problem, but since you're working with matrices, this doesn't seem like a raster package (or more generally, an R-sig-Geo) issue. mCon is already a matrix - why do you need to assign it to an "empty matrix" (r4)? Do you mean an empty raster? If

Re: [R-sig-Geo] creating STFDF or ST objects in R

2015-07-12 Thread chris english
Ajoke: > delta function (x) { if (any(is.na(x))) stop("time values cannot be negative") augment.with.one = function(x) { ux = unique(x) l = length(ux) if (l <= 1) stop("cannot derive time interval from length 1 or constant sequence") lx =