maechler@stat.math.ethz.ch
2000-Nov-27 17:27 UTC
[Rd] abline() does not obey "xpd" (clipping rules) (PR#750)
This is not a bug in the very strict sense, but for consistency, I feel that abline() should obey par("xpd") setting, even by ...-argument. The following code shows how lines() ``works'' and abline() does not : par(mfrow=c(2,1)) plot(1:4) plot(1:10) par(xpd=NA); abline(v=1:10); par(xpd=FALSE) ## or even abline(v=1:10, xpd = NA, col = "purple") ## lines() *does* work with xpd arg: lines(4:5,c(1,40), col = 2, xpd = FALSE)# clip to plot lines(5:6,c(1,40), col = 3, xpd = TRUE)# clip to figure lines(6:7,c(1,20), col = 4, xpd = NA)# clip to device text(4:6, 10.5, "xpd =", xpd = TRUE, col = 2:4) text(4:6, 10, c("FALSE","TRUE","NA"), col = 2:4, adj = 0) Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <>< -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._