[R] rect() question.

Paul Murrell paul at stat.auckland.ac.nz
Tue Aug 22 06:08:31 CEST 2000


Hi


> I have another rect question.  If I want to make a lot of rectangular,
> without borders, and without any spaces between them, how could I do it?
> 
> I.e.
> 
> > plot(-1:1., -1:1., type = "n")
> > rect(0,-1,1,1,col="red",lwd=0,border=F,xpd=T)
> > rect(-1,-1,0,1,col="blue",lwd=0,border=F,xpd=T)
> 
> will produce two rectangular, but there is space between them.  How can I
> get rid of it?


Does the following do what you want ?

> plot(-1:1., -1:1., type = "n")
> rect(0,-1,1,1,col="red",lwd=0,border="red",xpd=T)
> rect(-1,-1,0,1,col="blue",lwd=0,border="blue",xpd=T)

Paul


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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