From p.murrell@auckland.ac.nz  Mon Aug  6 01:29:00 2001
From: p.murrell@auckland.ac.nz (Paul Murrell)
Date: Mon, 6 Aug 2001 12:29:00 +1200
Subject: [Rd] arrows()/log scale/clipping (?) (PR#1039)
References: <200108021516.RAA27588@pubhealth.ku.dk> <x21ymumjsb.fsf@blueberry.kubism.ku.dk>
Message-ID: <013201c11e0e$c9fbc3a0$175dd882@stat.auckland.ac.nz>

Hi


> >    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
>
> This is gone in the development version. Didn't we have a very similar
> report quite recently??


Yes.  There was a bug in the line-clipping code (which I presume is what
this code is tickling), which has been fixed for 1.3.1

Paul


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] arrows()/log scale/clipping (?) (PR#1039)
Paul Murrell