[R] R rectangle boundary question

Janos A. Csirik janos at research.att.com
Tue Nov 28 22:41:45 CET 2000


Hello,

I am trying to produce two rectangles in R that are immediately adjacent
to each other.  However, I always seem to get a white boundary around each
rectangle, even though I have border=0.  Can anyone tell me how to get rid
of that boundary?  Thanks!

Here is a script of minimal length that illustrates my problem:
-------------------------------------------------------------------
postscript ( "out.ps", paper="letter" )
par(mar=rep(0,4))
plot(c(0,1), c(0,1), type="n", xaxs="i", yaxs="i", bty="n")
rect ( 0,0,1,1, col="white", border=0 )
rect ( 0.1, 0.1, 0.9, 0.9, col="darkgreen", border=0 )
rect ( 0.2, 0.2, 0.8, 0.8, col="yellow", border=0 )
dev.off()
-------------------------------------------------------------------

If you look at the output, you see that the yellow rectangle is surrounded
by a tiny white boundary, instead of the color going immediately from
yellow to green.  

Please send a copy of your reply to janos at research.att.com

Thanks again,

Janos A Csirik


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list