Skip to content
Prev 319709 / 398503 Next

Specifying point symbol fill colour in lattice xyplot keys

Dear Duncan,

Many thanks for that advice. It looked like it should work, but it only 
affected the points on the graph, and not the ones on the key. Looking 
at the lattice source, the draw.key function doesn't seem to consult 
many settings.

I'm now pretty confident that the fill parameter is not having an affect 
due to a small bug in the lattice draw.key function. Within the draw.key 
function there's a function called process.key, whose return value 
provides a template that determines which parameters from the 'points' 
key item will be copied to the output key. It takes a bunch of 
arguments, including 'fill', and includes all arguments -- except for 
'fill' -- in its return value. If I add 'fill=fill' to its return value 
list, then my example code works as expected.

Best wishes,

Wayne Rochester
CSIRO, Brisbane, Australia

-------- Original Message --------
Subject: Re: Specifying point symbol fill colour in lattice xyplot keys
From: Wayne Rochester <wayne.rochester at csiro.au>
To: Wayne Rochester <Wayne.Rochester at csiro.au>
Date: 18/03/13 11:54