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
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 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 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >