Re: [R] misalignment of x-axis when overlaying two plots using latticeExtra

2009-01-15 Thread Felix Andrews
Hi Sean, as.layer() does not do what you think it does: it does not attempt to plot things on a common scale, it simply draws the panels of two lattice plots in the same space. Actually, it is not very useful on its own. What you want is doubleYScale() in the development version (0.5-5) of lattic

[R] misalignment of x-axis when overlaying two plots using latticeExtra

2009-01-14 Thread Sean Zhang
Dear R-helpers: I am an entry-level R user and have a question related to overlaying a barchart and and a xyplot using latticeExtra. My problem is that when I overlay them I fail to align their x-axes. I show my problem below through an example. #the example data frame is provided below ve