From p.dalgaard@biostat.ku.dk  Wed Sep 19 15:08:56 2001
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 19 Sep 2001 16:08:56 +0200
Subject: [Rd] Bizarre clipping with abline and points (PR#1095)
In-Reply-To: <200109191348.PAA27712@pubhealth.ku.dk>
References: <200109191348.PAA27712@pubhealth.ku.dk>
Message-ID: <x2elp39ssn.fsf@blueberry.kubism.ku.dk>

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


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