Re: [R] image NAs error

2004-07-12 Thread Roger D. Peng
It can't calculate the range of the x/y axes so there's nothing to plot. -roger Christoph Lehmann wrote: 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

[R] image NAs error

2004-07-12 Thread Christoph Lehmann
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 eve