On 11/10/05, Berton Gunter <gunter.berton at gene.com>
wrote:> Folks:
>
> The "key" argument of trellis commands (e.g. xyplot()) allows one
to place
> a
> key at the top of a trellis display using
>
> key=list(space='top',...)
>
> I would like to increase the space between the bottom of the key and the
> trellis plots beyond the default. Is there a simple way to do this? At
> present, I add an empty row (e.g. text = '', point colored in
background
> color) to the bottom of each key column. This seems a bit of a kludge. Is
> there a slicker way to do it, i.e. a parameter that I have missed?
Yes, trellis.par.get("layout.heights"). e.g.
xyplot(1 ~ 1, key = list(text = list(letters[1:3]), points = list(col = 1:3)),
par.settings = list(layout.heights = list(key.axis.padding = 5)))
-Deepayan