Managing the placement of empty grid panels

When building fewer panels than a full grid, you get a space without a panel. Most lattice functions place a space in the upper right corner, but I would like to have it in the lower right corner, as it marginal.plotdoes (see. Figure). Is there a way to make other lattice functions the same?

Example from the marignal.plot help page

I know that the order of the panel is determined by the order of the factor levels of the condition variable or using an argument index.cond, but that does not help me. I tried to decrypt the code marginal.plot, but could not figure it out, so any help would be appreciated!

+5
source share
2 answers

as.table=TRUE , , .

+3

as.table= , ( ). , , , .

skip= (, as.table=TRUE):

# 'skip' plotting of the central panel.
# Note: skip <- c(0,0,0,0,1,0,0,0,0) or even 'skip <- 1:9 %in% 5' would also work
skip <- c(F,F,F,F,T,F,F,F,F) 
xyplot(lat ~ long | Depth, data = quakes, skip = skip, layout = c(3,3))

enter image description here

+11

All Articles