Skip to content
Back to formatted view

Raw Message

Message-ID: <20070524110841.EC7D62A3FA@slim.kubism.ku.dk>
Date: 2007-05-24T11:08:41Z
From: rene.locher at zhwin.ch
Subject: image(): wrong comment in error message (PR#9707)

Full_Name: Rene Locher
Version: R version 2.5.0 (2007-04-23)
OS: Windows XP
Submission from: (NULL) (160.85.231.54)


image(x = 1:2, y = 1:2,
      z = matrix(c(1,2,3,1,2,3), ncol=2+1),
      col = c("red","blue","green"))

results in: 
Error in image.default(x = 1:2, y = 1:2, z = matrix(c(1, 2, 3, 1, 2, 3),  : 
	dimensions of z are not length(x)(+1) times length(y)(+1)

instead of: 
Error in image.default(x = 1:2, y = 1:2, z = matrix(c(1, 2, 3, 1, 2, 3),  : 
	dimensions of z are not length(x)(-1) times length(y)(-1)
                                          ^                   ^