[R] image NAs error

Roger D. Peng rpeng at jhsph.edu
Mon Jul 12 14:09:07 CEST 2004


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
>




More information about the R-help mailing list