Re: [R-sig-Geo] newbie bbox type question

2011-05-30 Thread Roger Bivand
On Mon, 30 May 2011, Roger Bivand wrote: On Mon, 30 May 2011, Barry Rowlingson wrote: > plot(as(m, "Spatial")) Coercion with 'as' seems to fail for me: > rb=bbox(r) > rb min max x -2.840466 -2.342137 y 54.042700 54.339724 > as(rb,"Spatial") Error in as(rb, "Spatial") : no met

Re: [R-sig-Geo] newbie bbox type question

2011-05-30 Thread Roger Bivand
On Mon, 30 May 2011, Barry Rowlingson wrote: > plot(as(m, "Spatial")) Coercion with 'as' seems to fail for me: > rb=bbox(r) > rb min max x -2.840466 -2.342137 y 54.042700 54.339724 > as(rb,"Spatial") Error in as(rb, "Spatial") : no method or default for coercing "matrix" to "Sp

Re: [R-sig-Geo] newbie bbox type question

2011-05-30 Thread Barry Rowlingson
> plot(as(m, "Spatial")) Coercion with 'as' seems to fail for me: > rb=bbox(r) > rb min max x -2.840466 -2.342137 y 54.042700 54.339724 > as(rb,"Spatial") Error in as(rb, "Spatial") : no method or default for coercing "matrix" to "Spatial" but using Spatial() works: plot(

Re: [R-sig-Geo] newbie bbox type question

2011-05-30 Thread Roger Bivand
On Mon, 30 May 2011, Barry Rowlingson wrote: On Sun, May 29, 2011 at 8:16 PM, Hodgess, Erin wrote: I want to have one map (via writeOGR) which has the whole thing, and then have several maps by days. However, I want the whole area as defined by the entire data set to show every day. I loo

Re: [R-sig-Geo] newbie bbox type question

2011-05-30 Thread Barry Rowlingson
On Sun, May 29, 2011 at 8:16 PM, Hodgess, Erin wrote: > I want to have one map (via writeOGR) which has the whole thing, and then > have several maps by days. > > However, I want the whole area as defined by the entire data set to show > every day. > > I looked at bbox but I can't set a bbox.

Re: [R-sig-Geo] newbie bbox type question

2011-05-29 Thread Edzer Pebesma
Hi Erin, it is not clear to me whether your goal is to write the data with writeOGR, or create spatio-temporal data objects and analyse / display them. OGR (and writeOGR) intrinsically know nothing about time, so having time as, say attribute columns is the only thing you could do (AFAIK). If you

[R-sig-Geo] newbie bbox type question

2011-05-29 Thread Hodgess, Erin
Dear R Sig Geo People: I have a large data frame which includes dates and times as columns. I want to have one map (via writeOGR) which has the whole thing, and then have several maps by days. However, I want the whole area as defined by the entire data set to show every day. I looked at bbox