Re: [R] Multiple lattice plots on a page: aligning x-axes vertically

2009-01-25 Thread baptiste auguie
Have you tried c() from the latticeExtra package? It worked for me (see below) library(grid) library(lattice) x <- seq(0, 10, length=100) y <- sin(x) y2 <- 10*sin(x) f <- rep(c("1", "2"), each=50) p1 <- xyplot(y~x,groups=f, ylab="BIG LABEL", # auto.key=list(space="right"), par.settings = list

[R] Multiple lattice plots on a page: aligning x-axes vertically

2009-01-25 Thread Daniel Myall
Dear R-help, I am creating a two lattice plots (a densityplot() and xyplot()) that have the same x-axes and then 'printing' them onto the same page, one above the other (see end of email for an example to generate the graph). With different labels on the y-axis for each plot the left spacing i