image stops detecting wrong sized z matrix (PR#352)
Tue, 30 Nov 1999 14:28:12 +0100 (MET)

Full_Name: Albrecht Gebhardt
Version: 0.90.0
OS: Linux + Tru64
Submission from: (NULL) (

This is where example(krige) from library(sgeostat) stops with R 0.90.0:

krige> image(grid$x, grid$y, grid$krige$zhat, add = T)
Error in length(x) == nrow(z) : comparison (1) is possible only for vector

in previous versions of R the above image() call worked, because image()
did the transformation 

  grid$krige$zhat -> matrix(grid$krige$zhat,length(grid$x),length(grid$x))

iself. (BTW, contour() didn't)

Was this change of behaviour in image() made intentionally? 

Anyway I will change the Rd help page for krige in sgeostat to
image(grid$x, grid$y, matrix(grid$krige$zhat,length(grid$x),length(grid$x)), add
= T)


r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: