[R-sig-Geo] How to create a SpatialPolygonsDataFrame object

2009-11-09 Thread Chen, Shaofei
Hello everyone, I can read polygon shape files into SpatialPolygonsDataFrame objects using maptools library. But how to create a SpatialPolygonsDataFrame object, for example, a 400 by 400 polygon? Thank you in advance! Best, Shaofei [[alternative HTML version deleted]] __

[R-sig-Geo] underlying covariate data using R package 'spatstat'

2009-11-09 Thread Raya A. Pruner
I have another question for everyone related to the spatstat package and model fitting. A brief background on my question of interest: We are interested in the spatial aggregation of snowy plover nests on a barrier island system in response to nest fates. We hypothesize a greater level of ag

Re: [R-sig-Geo] metadata

2009-11-09 Thread Roger Bivand
On Mon, 9 Nov 2009, Blair Christian wrote: Hi All, I have a couple of comments here. I'm working on some S4 classes for spatiotemporal data, basically extending Spatial, and I would like to include some metadata sooner or later. I wrote some functions to get data off of webpages (like spatiot

Re: [R-sig-Geo] metadata

2009-11-09 Thread Blair Christian
Hi All, I have a couple of comments here. I'm working on some S4 classes for spatiotemporal data, basically extending Spatial, and I would like to include some metadata sooner or later. I wrote some functions to get data off of webpages (like spatiotemporal ozone data from the EPA's air explorer

Re: [R-sig-Geo] RE : grid error for kriging

2009-11-09 Thread Roger Bivand
On Mon, 9 Nov 2009, Tobin Cara wrote: Dear Roger, My Prec00 is a data frame as I imported it as a matrix from a text file. It has 32 rows (one for each precipitation station) and 72 columns (72 hours of data at each station). I interpolated by importing a second matrix with just the X, Y, an

[R-sig-Geo] RE : grid error for kriging

2009-11-09 Thread Tobin Cara
Dear Roger, My Prec00 is a data frame as I imported it as a matrix from a text file. It has 32 rows (one for each precipitation station) and 72 columns (72 hours of data at each station). I interpolated by importing a second matrix with just the X, Y, and Z of the original data and iterated for

Re: [R-sig-Geo] Finding polygons corresponding to points

2009-11-09 Thread Karl Ove Hufthammer
On Mon, 9 Nov 2009 13:27:16 +0100 (CET) Roger Bivand wrote: > > For each point, I need to find the corresponding polygon. You can think > > of the points as positions of for example earthquakes, and the polygons > > as state or country borders. For each earthquake, I need to calculate > > the st

Re: [R-sig-Geo] Finding polygons corresponding to points

2009-11-09 Thread Roger Bivand
On Mon, 9 Nov 2009, Karl Ove Hufthammer wrote: Dear list members I have a collection of polygons (a SpatialPolygonsDataFrame object, but I can easily convert it to different formats), and a collection of coordinate points. Each point corresponds to (at most) one polygon. For each point, I need

[R-sig-Geo] Finding polygons corresponding to points

2009-11-09 Thread Karl Ove Hufthammer
Dear list members I have a collection of polygons (a SpatialPolygonsDataFrame object, but I can easily convert it to different formats), and a collection of coordinate points. Each point corresponds to (at most) one polygon. For each point, I need to find the corresponding polygon. You can thin

Re: [R-sig-Geo] grid error for kriging

2009-11-09 Thread Roger Bivand
On Mon, 9 Nov 2009, Tobin Cara wrote: Hello, Has anyone ever used a DTM as their grid for interpolation and come across this error. My DTM has pixels 100 m by 100 m, so I really do not understand this error as it is regular. Also, this only happens when I am doing multiple iterations in time

[R-sig-Geo] grid error for kriging

2009-11-09 Thread Tobin Cara
Hello, Has anyone ever used a DTM as their grid for interpolation and come across this error. My DTM has pixels 100 m by 100 m, so I really do not understand this error as it is regular. Also, this only happens when I am doing multiple iterations in time. Code: list_ked[[i]] <- krige(Prec00[

Re: [R-sig-Geo] Kriging with External Drift, multivariate experience?

2009-11-09 Thread Edzer Pebesma
Tobin Cara wrote: > Hello, > > Thank you all for your previous help. I began using R 2 weeks ago, and I am > getting somewhere finally. I have been able to run universal kriging with a > Digital Elevation Model trend. Now, does anyone have experience with kriging > more than one trend variable

[R-sig-Geo] Kriging with External Drift, multivariate experience?

2009-11-09 Thread Tobin Cara
Hello, Thank you all for your previous help. I began using R 2 weeks ago, and I am getting somewhere finally. I have been able to run universal kriging with a Digital Elevation Model trend. Now, does anyone have experience with kriging more than one trend variable? I assume you have to have th

Re: [R-sig-Geo] metatdata

2009-11-09 Thread Barry Rowlingson
On Mon, Nov 9, 2009 at 7:01 AM, Agustin Lobo wrote: > Hi! > Is anyone thinking on designing metadata for R spatial objects? > I've seen there are metadata facilities in Bioconductor for genomics, > perhaps we could get some inspiration from them? I think you need to give us some examples of what

Re: [R-sig-Geo] metatdata

2009-11-09 Thread Roger Bivand
On Mon, 9 Nov 2009, Agustin Lobo wrote: Hi! Is anyone thinking on designing metadata for R spatial objects? I've seen there are metadata facilities in Bioconductor for genomics, perhaps we could get some inspiration from them? You are welcome to try, naturally. The S3 data.frame object on whic