[R] rectangles without borders

Prof Brian Ripley
Fri, 09 Apr 2004 18:01:31 -0000

The person who added shading did not update the help page for rect ....

Try border=FALSE (and look at ?polygon for more details as to why).


On Fri, 9 Apr 2004, Tamas Papp wrote:

> Hi,
>
> I want to draw rectangles with "rect" without borders, but with
> shading (ie setting density).  ?rect says
>
>      lty: line type for borders; defaults to '"solid"'.
>
> but if I set it to 0, the border disappears, but the shading also
> vanishes!  But the above says that lty is the line type for BORDERS,
> and does not mention density at all -- how do I get around this?
>
> Thanks,
>
> Tamas
>
>

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595