Re: [Rd] legend's arguments "angle" and "density"

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Sat 21 Aug 2004 - 03:44:40 EST

Martin Maechler wrote:

>>>>>>"UweL" == Uwe Ligges <ligges@statistik.uni-dortmund.de>
>>>>>>    on Fri, 20 Aug 2004 17:01:13 +0200 writes:

>
>
> UweL> Paul Murrell wrote [on 2002-03-14 with Subject: "filled bars with
> UweL> 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?
>
> UweL> [SNIP; I cannot find any related bug report in the repository]
>
>
> UweL> I'm just reviewing bug reports and other stuff re. legend() and found
> UweL> this old message in one of my Next-Week-To-Do-folders.
>
> UweL> Well, the point mentioned above is not really a bug, because one has to
> UweL> specify BOTH arguments, angle AND density in legend(). Is there any
> UweL> point not to make angle = 45 the default, as it already is for polygon()
> UweL> and rect()?
>
> This seems like a good idea,
> but we'll wait for your many other patches to legend.R and
> legend.Rd :-)

Just three rather than many issues I'm trying to address, the third one is just closing a bug report. ;-)
Here the two suggested patches in merged form.

Uwe


R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sat Aug 21 03:46:36 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 08:59:21 EST