[Rd] Bizarre clipping with abline and points (PR#1095)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
19 Sep 2001 16:08:56 +0200


J.C.Rougier@durham.ac.uk writes:

> I want to put some points along the horizontal axis.
> 
> > plot(1:10, 1:10)
> > points(4, par("usr")[3], xpd=TRUE)
> > abline(v=5)
> 
> works fine for me.  But if I try
> 
> > plot(1:10, 1:10)
> > abline(v=5)
> > points(4, par("usr")[3], xpd=TRUE)
> 
> then the points are clipped.  The call to abline seems to be
> enforcing xpd=FALSE for later calls to the plot.

Confirmed, same effect with 

plot(1:10, 1:10)
points(4, par("usr")[3], xpd=FALSE)
points(4, par("usr")[3], xpd=TRUE)

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