[Rd] Extra lines when bty="n" (PR#1021)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
12 Jul 2001 01:04:38 +0200
ce@biostat.ku.dk writes:
> For some reason two extra lines keep appearing
> when making graphics with no box, bty="n" (a vertical line
> along the leftmost side of the graphics region and a horizonal
> line along the bottom side). The lines are very visible if the
> plot is saved as a postscript file and is later included in
> a document.
>
> Example code:
>
> # postscript("test.ps")
> y <- rnorm(100)
> par(mar=c(0,0,0,0), bty="n")
> plot(y)
> # dev.off()
You're seeing the top of the axes, which the mar=c(0,0,0,0) doesn't
quite chop off. (try it with mar=c(1,1,1,1)). You want axes=F
rather than the bty="n" setting.
--
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._