[Rd] symbols() draws squares too high (PR#9027)
michellang at gmail.com
michellang at gmail.com
Fri Jun 23 15:55:01 CEST 2006
Full_Name: Michel Lang
Version: 2.2.1
OS: 2.6.16-gentoo-r9 on x86_64
Submission from: (NULL) (62.143.164.39)
plot(-2:2, -2:2, type = "n")
symbols(x = 0, y = 0, squares = 2, inches = FALSE, add = TRUE)
This should plot a square with its center at (0,0) and side length 2, in other
words a square from (-1,-1) as lower left angle to (1,1) as upper right angle.
However, if you execute this line
abline(h = c(-1,1))
you see that the squares height is definitely too large.
More information about the R-devel
mailing list