image stops detecting wrong sized z matrix (PR#352)

albrecht.gebhardt@uni-klu.ac.at albrecht.gebhardt@uni-klu.ac.at
Tue, 30 Nov 1999 14:28:12 +0100 (MET)


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


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
types

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)
...


Albrecht

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._