[Rd] abline and log plots (PR#1243)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
05 Jan 2002 01:31:13 +0100
stephen@cogsci.ed.ac.uk writes:
> Full_Name: Stephen Eglen
> Version: 1.4
> OS: Redhat Linux 7.1
> Submission from: (NULL) (128.252.204.36)
>
>
> abline() produces a spurious line in addition to the correct line, at least with
>
> the X11 driver. The postscript file generated also has nan values in it, which
> causes an error under ghostscript.
>
> xs <- c(0, 150, 300)
> ys <- c(75, 40, 23)
> par(mfrow=c(1,2))
> plot(xs,ys, log="")
> abline(70, -0.25, -.1, untf=F)
> plot(xs,ys, log="y")
> abline(70, -0.3, -.1, untf=T)
> dev.copy2eps(file="abline.ps")
Still in the development version too. Notice that it is log="y" +
untf=T that is causing the trouble. Looks like the clipping algorithm
is getting confused.
A fairly straightforward workaround is
plot(xs,ys, log="y")
curve(70-0.3*x,add=T)
--
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._