Re: [R] image NAs error

From: Roger D. Peng <rpeng_at_jhsph.edu>
Date: Mon 12 Jul 2004 - 22:09:07 EST

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@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
>



R-help@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 Received on Mon Jul 12 22:17:21 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:50 EST