[R] image NAs error

Christoph Lehmann christoph.lehmann at gmx.ch
Mon Jul 12 13:08:35 CEST 2004


tmp.vimp <- matrix(NA, nrow = x.dim, ncol = y.dim)
tmp.vimp <- image(tmp.vimp, col=rainbow)

gives:

Error in image.default(tmp.vimp, col = rainbow) :
         invalid z limits
In addition: Warning messages:
1: no finite arguments to min; returning Inf
2: no finite arguments to max; returning -Inf


even though NAs are allowed in image

what went wrong here?

thank you

Christoph




More information about the R-help mailing list