Re: [R] Lattice plotting question

2010-06-27 Thread David Warren
That achieves the desired alignment, but squishes all of the data in the top xyplot, which has a maximum y-value of around 50. Any thoughts on a means of moving the axis without changing the range? Thanks! On Fri, Jun 25, 2010 at 6:42 PM, Felix Andrews wrote: > ylim = extendrange(c(0,100)) ? >

Re: [R] Lattice plotting question

2010-06-27 Thread Felix Andrews
Oh, if you want to put the panels on the same scale, see resizePanels() from the latticeExtra package. That does something like print(xyplot(...), panel.height = list(x = c(50,100), units = "null")) but figures out the ratios automatically. -Felix On 28 June 2010 08:46, David Warren wrote: > T

Re: [R] Lattice plotting question

2010-06-25 Thread Felix Andrews
ylim = extendrange(c(0,100)) ? On 26 June 2010 01:42, David Warren wrote: > Hi all, > >     I'm working on some plots using lattice (R 2.10.1), and have entered > the polish phase.  I've produced a satisfactory pair of xyplots ( > http://imgur.com/EyXGi.png), but would like to align the y-axes of

[R] Lattice plotting question

2010-06-25 Thread David Warren
Hi all, I'm working on some plots using lattice (R 2.10.1), and have entered the polish phase. I've produced a satisfactory pair of xyplots ( http://imgur.com/EyXGi.png), but would like to align the y-axes of the top and bottom plots. I assume that I need to adjust axis padding or something