[R] specifying a key for a trellis display

Berton Gunter gunter.berton at gene.com
Thu Nov 10 20:44:21 CET 2005


Many thanks, Deepayan. As I suspected... I'll fool around with these key
arguments to see what they do.

-- Bert
 

> -----Original Message-----
> From: Deepayan Sarkar [mailto:deepayan.sarkar at gmail.com] 
> Sent: Thursday, November 10, 2005 11:31 AM
> To: Berton Gunter
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: specifying a key for a trellis display
> 
> 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
>




More information about the R-help mailing list