[R-sig-Geo] Problem with locations in image() in GeoR

Rafal Buczkowski buczkowski at delta.sggw.waw.pl
Mon Jan 31 08:59:47 CET 2005


Hello

I am doing kriging with:

krigres=krige.conv(geozadrz , geozadrz$coords, geozadrz$data, locs , 
borders=NULL, krigcont )

and I would like to use as locations frame of coordinates of points which 
cover the area I am interested in. Area is not a square. When I want to plot 
kriging results with:

image(krigres)

the following error appears

Error in image.default(x = c(3617675, 3617875, 3617975, 3618075, 3618175,  :
        dimensions of z are not length(x)(+1) times length(y)(+1)
In addition: Warning message:
data length [2703] is not a sub-multiple or multiple of the number of rows 
[29] in matrix

and after I reduced the number of rows of my locations to number which is 
multiple of 29 the following message appeared:

Error in image.default(x = c(3617675, 3617875, 3617975, 3618075, 3618175,  :
        dimensions of z are not length(x)(+1) times length(y)(+1)
In addition: Warning message:
data length [2703] is not a sub-multiple or multiple of the number of rows 
[29] in matrix

My list of coordinates is not a square. Does image() accept only square 
areas? I am using coordinates of points from my area to avoid doing kriging 
for points which out outside area of my research.

Thanks in advance for your help

Rafal Buczkowski




More information about the R-sig-Geo mailing list