J.C.Rougier@durham.ac.uk
2001-Sep-19 13:48 UTC
[Rd] Bizarre clipping with abline and points (PR#1095)
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. Cheers, Jonathan. --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.1 year = 2001 month = 08 day = 31 language = R Search Path: .GlobalEnv, Autoloads, package:base -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
2001-Sep-19 14:08 UTC
[Rd] Bizarre clipping with abline and points (PR#1095)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._