[R-sig-Geo] Multiple polygons

2009-10-14 Thread Rui Catarino
Hello to all, This is my first attempt to use GIS tools in R so I'm sorry if my question is to naïve, but the truth is that I've spent several hours looking in forum's and packages for a solution with no joy. What I'm trying to achieve is to create multiple polygons (around 150) based in

Re: [R-sig-Geo] Multiple polygons

2009-10-14 Thread Roger Bivand
On Wed, 14 Oct 2009, Rui Catarino wrote: Hello to all, This is my first attempt to use GIS tools in R so I'm sorry if my question is to na?ve, but the truth is that I've spent several hours looking in forum's and packages for a solution with no joy. What I'm trying to achieve is to create

Re: [R-sig-Geo] Multiple polygons

2009-10-14 Thread Rui Catarino
Hello again, Thank you for such a quick reply. You were right, it seems a bit obscure so following your suggestion I attach a small example of what looks like my table. The list is in excel format and I usually use the package xlsReadWrite to read the excel files. Once again thank you for your

[R-sig-Geo] Strange behavior of spsample when sampling from Sgrid

2009-10-14 Thread Paul Hiemstra
Dear list, I spotted the following behavior when using overlay to sample from a SpatialPixels or SpatialGrid. The following illustrates my point: library(sp) data(meuse.grid) gridded(meuse.grid) = ~x+y meuse2 = spsample(meuse.grid, type = regular,

Re: [R-sig-Geo] Strange behavior of spsample when sampling from Sgrid

2009-10-14 Thread Paul Hiemstra
...and in addition: sessionInfo() R version 2.9.2 (2009-08-24) i486-pc-linux-gnu locale:

[R-sig-Geo] plot points in grid-plot with sp.layout

2009-10-14 Thread Tom Gottfried
Hi list, the last plot in the following code ends up with error messages in the plot: data(meuse.grid) data(meuse) coordinates(meuse.grid) - ~x+y coordinates(meuse) - ~x+y meuse.grid - as(as(meuse.grid, SpatialPixelsDataFrame), SpatialGridDataFrame) spplot(meuse) # works spplot(meuse,

Re: [R-sig-Geo] Multiple polygons

2009-10-14 Thread Roger Bivand
On Wed, 14 Oct 2009, Rui Catarino wrote: Hello again, Thank you for such a quick reply. You were right, it seems a bit obscure so following your suggestion I attach a small example of what looks like my table. The list is in excel format and I usually use the package xlsReadWrite to read the

[R-sig-Geo] Scale bar in base plot

2009-10-14 Thread Tim Clark
Dear List, I am trying to place a scal bar in a plot and can't find a function to do it with base graphics. Is there one? I have mfrow = c(3,3) and would like to place the scale bar in the last pannel. An example of what I am wanting follows. Thanks! x - 0:12 y - sin(pi/5 * x) op -