Re: [R-sig-Geo] spRbind for spplot

2010-08-18 Thread Klaus Vormoor
Dear Paul, thanks for your answer. I guess, your second advice is pricipially that what I want. But so far it did not work. I try a more precise explaination: For an area I have in total 2200 catchments (nor = readOGR(shp)). 100 of them have observations for five days

Re: [R-sig-Geo] spRbind for spplot

2010-08-18 Thread Paul Hiemstra
On 08/18/2010 11:03 AM, Klaus Vormoor wrote: Dear Paul, thanks for your answer. I guess, your second advice is pricipially that what I want. But so far it did not work. I try a more precise explaination: For an area I have in total 2200 catchments (nor = readOGR(shp)). 100 of them have

Re: [R-sig-Geo] spRbind for spplot

2010-08-18 Thread Jon Olav Skoien
Hi Klaus, When I try plot_poly = rtopObj3$observations plot_poly$predictions = rtopObj3$predictions$var1.pred spplot(plot_poly, c(observations, predictions)) it does not work since the replacement has 2100 rows and the data has 100. I would like to create a new object (e.g. plot_poly) which

Re: [R-sig-Geo] spRbind for spplot

2010-08-17 Thread Paul Hiemstra
Dear Klaus, You need to be more specific as to what you want exactly. From what I understand both your runoff and predictions are attributes that you want to use to fill the polygons. My first idea would be to make to plots next to each other, which is quite simple in spplot: spplot(data,