Skip to content
Prev 55414 / 398500 Next

Skipping panels in Lattice

On Wednesday 08 September 2004 23:18, Leon Barmuta wrote:
What exactly do you mean by that? Do you want the strips and and panel 
boundary for that panel not to be shown? There's no way of doing that 
as long as you have 2 different conditioning variables. The plot here 
is like a matrix, you cannot remove one element from it, you have to 
remove a whole column or a whole row.

The best suggestion I can give you is to use the interaction facc:facb 
as your conditioning variable. bwplot would see this as a single factor 
(so the array structure is lost, and you just have a vector of plots), 
and it will simply drop the unused combination:

plot1 <- bwplot( dv ~ faca | facc:facb, data=df2, layout = c(4, 2))
plot1

plot2 <- update(plot1, skip=c(rep(F, 3), T, rep(F, 4)))
plot2

Deepayan