[R] align two lattice plots with grid

baptiste auguie ba208 at exeter.ac.uk
Mon Dec 1 21:38:08 CET 2008


Many thanks, this tool from latticeExtra does exactly what I was  
trying to achieve!

Best wishes,

Baptiste

On 1 Dec 2008, at 20:06, Deepayan Sarkar wrote:

>
> In general, the latticeExtra package has some tools to combine
> arbitrary trellis objects (thanks to Felix Andrews):
>
> library(latticeExtra)
>
> update(c(p2, p1, x.same = TRUE),
>       layout = c(1, 2),
>       ylab = list(c("a", "BIG LABEL"), y = c(1/6, 2/3)),
>       par.settings = list(layout.heights = list(panel = c(1, 2))))
>
> -Deepayan



More information about the R-help mailing list