Skip to content

Extra lines when bty="n" (PR#1021)

2 messages · ce@biostat.ku.dk, Peter Dalgaard

#
Full_Name: Claus Ekstrøm
Version: 1.2.0
OS: Linux (RedHat 7.1)
Submission from: (NULL) (212.54.75.68)


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()


Claus

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
ce@biostat.ku.dk writes:
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.