arrows() seems to hang when either x or y scale of the plot is logarithmic and the arrows requested go beyond the plot (by more than a certain amount). I didn't go into C code to find it, but here's a function that exercises the bug a bit ... arrow.bug2 <- function(y0=1,y1=10,log="y") { plot(c(0.1,1),c(1,10),log=log) arrows(x0=0.5, y0=y0, x1=0.5, y1=y1, length=0.05,angle=90) } arrow.bug2() ## OK arrow.bug2(log="x") ## OK arrow.bug2(y0=0.01) ##hangs arrow.bug2(y1=11) ## OK arrow.bug2(y1=20) ## hangs arrow.bug2(log="x",y1=20) ## hangs --please do not edit the information below-- Version: platform = i686-pc-linux-gnu arch = i686 os = linux-gnu system = i686, linux-gnu status major = 1 minor = 3.0 year = 2001 month = 06 day = 22 language = R Search Path: .GlobalEnv, package:ctest, Autoloads, package:base Permanent address: Zoology Department, University of Florida bolker@zoo.ufl.edu (352) 392-5697 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
bolker@zoo.ufl.edu writes:> arrows() seems to hang when either x or y scale of the plot > is logarithmic and the arrows requested go beyond the plot > (by more than a certain amount). I didn't go into C code to > find it, but here's a function that exercises the bug a bit ... > > arrow.bug2 <- function(y0=1,y1=10,log="y") { > plot(c(0.1,1),c(1,10),log=log) > arrows(x0=0.5, > y0=y0, > x1=0.5, > y1=y1, > length=0.05,angle=90) > } > > arrow.bug2() ## OK > arrow.bug2(log="x") ## OK > arrow.bug2(y0=0.01) ##hangs > arrow.bug2(y1=11) ## OK > arrow.bug2(y1=20) ## hangs > arrow.bug2(log="x",y1=20) ## hangsThis is gone in the development version. Didn't we have a very similar report quite recently?? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._