Re: [R] align two lattice plots with grid

2008-12-01 Thread baptiste auguie
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(latticeExtr

Re: [R] align two lattice plots with grid

2008-12-01 Thread Deepayan Sarkar
On Mon, Dec 1, 2008 at 8:13 AM, baptiste auguie <[EMAIL PROTECTED]> wrote: > Dear list, > > I need to align two plots on top of each other for comparison (they only > have the x-axis in common). When the y-labels have a different extent, I > cannot find a way to align the x-axes, as illustrated bel

[R] align two lattice plots with grid

2008-12-01 Thread baptiste auguie
Dear list, I need to align two plots on top of each other for comparison (they only have the x-axis in common). When the y-labels have a different extent, I cannot find a way to align the x-axes, as illustrated below, library(grid) library(lattice) x <- seq(0, 10, length=100) y <- sin(x)