[R] Key colour problem with lattice plot
Alex Brown
alex at transitive.com
Wed Oct 25 16:42:13 CEST 2006
On 23 Oct 2006, at 23:52, Deepayan Sarkar wrote:
> On 10/23/06, Alex Brown <alex at transitive.com> wrote:
>> >>
>> >> Can anyone explain why the key is inverted versus the bar
>> >> order?
>> >
>> > Because the key goes from top to bottom, while cartesian
>> coordinates
>> > go from bottom to top. Neither can really be any other way by
>> default,
>> > if you think about it. I did promise someone that I would add an
>> > option to reverse the order in key, but looks like I haven't
>> done that
>> > yet.
>> >
>>
>> In the case of barchart, what would be the justification for not
>> ordering the bars (in a group) as for the key, or vice versa? Please
>> forgive my ignorance - I am curious to understand the design
>> principles. I am certainly very pleased to have the power of
>> auto.key in lattice - it's the main reason why I stopped using the
>> default plot function.
>
> No particular reason, it's just (I think) one of the weaknesses in the
> Trellis design. There is no actual communication between legends and
> panel functions....
>
...
> -Deepayan
Thank you for your excellent explanation. I look forward to your fix.
-Alex
More information about the R-help
mailing list