[Rd] filled.contour(): no check when z dimension dismatch (PR#1432)

humbertc@univ-mlv.fr humbertc@univ-mlv.fr
Wed, 3 Apr 2002 14:51:04 +0200 (MET DST)


Full_Name: Cyril Humbert
Version: 1.4.1
OS: Linux
Submission from: (NULL) (193.55.63.125)


`filled.contour()' doesn't complain if z matrix dimension doesn't match
x and y arguments. It would be safer if `filled.contour()' displays an
error (or a warning) message as `contour()' does.

For example :

   > x <- 1:3
   > z <- matrix(data=1:16, nrow=4, ncol=4)
   > filled.contour(x, x, z) # z is (4x4) whereas x is (1x3).
   ## no error/warning. 

   > contour(x, x, z)
   Error in contour(as.double(x), as.double(y), z, as.double(levels), labels,  :

         dimension mismatch
> 


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._