From ligges at statistik.uni-dortmund.de  Fri Aug 20 17:01:13 2004
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Fri Aug 20 17:00:13 2004
Subject: [Rd] legend's arguments "angle" and "density"
In-Reply-To: <009b01c1cb92$c7fbdb80$7632d882@stat.auckland.ac.nz>
References: <Pine.GSO.3.96.1020313040441.2280B-100000@magic>
	<001e01c1cac5$2ac49960$7632d882@stat.auckland.ac.nz>
	<3C8FB3D0.C7CD3D3D@cancer.org.uk> <3C90045E.C8E0B8C0@icrf.icnet.uk>
	<009b01c1cb92$c7fbdb80$7632d882@stat.auckland.ac.nz>
Message-ID: <41261239.1030605@statistik.uni-dortmund.de>

Paul Murrell wrote [on 2002-03-14 with Subject: "filled bars with 
patterns" in reply to Arne Mueller]

> Hi
> 
> <snip>
> 
>>I'd also like to have the filled boxes in the legend to be striped. The
>>legend function has a 'density' attribute, but unfortunately this does't
>>seem to do anything
>>
>>following the above example
>>
>>legend(3.4, 5, c('Axx','Bxx','Cxx','Dxx'), fill = c('red', 'blue',
>>'green', 'orange'))
>>
>>is the same as
>>
>> legend(3.4, 5, c('Axx','Bxx','Cxx','Dxx'), density=10, fill = c('red',
>>'blue', 'green', 'orange'),
>>      density=c(10,-1,20, 200))
> 
> 
> 
> This appears to be a bug.  Can you file a bug report for this please?

[SNIP; I cannot find any related bug report in the repository]


I'm just reviewing bug reports and other stuff re. legend() and found 
this old message in one of my Next-Week-To-Do-folders.

Well, the point mentioned above is not really a bug, because one has to 
specify BOTH arguments, angle AND density in legend(). Is there any 
point not to make angle = 45 the default, as it already is for polygon() 
and rect()?

Uwe Ligges


[Rd] legend's arguments "angle" and "density"
Uwe Ligges