On Wed, May 4, 2011 at 9:20 PM, Cristina Silva <csi...@ipimar.pt> wrote: > Hi all, > > In lattice graphs, panels are drawn from left to right and bottom to top. > The flag "as.table=TRUE" changes to left to right and top to bottom. Is > there any way to change to first top to bottom and then left to right? > didn“t find anything neither in Help pages nor Lattice book.
See ?packet.panel.default. For example, p <- xyplot(mpg ~ disp | factor(carb), mtcars, as.table = TRUE) print(p, packet.panel = packet.panel.default) my.packet.panel <- function(layout, condlevels, page, row, column, ...) { tlayout <- layout[c(2, 1, 3)] # switch row and column print(packet.panel.default(tlayout, condlevels, page = page, row = column, column = row, ...)) } print(p, packet.panel = my.packet.panel) -Deepayan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.