A solution using grid.arrange
. I've left in the call to facet_wrap
so the strip.text
remains. You could easily remove this.
# plot for class 1
c1 <- ggplot(e[e$class==1,], aes(x=x,y=y,size=z)) + geom_point() + scale_area() + facet_wrap(~class)
# plot for class 2
c2 <- c1 %+% e[e$class==2,]
library(gridExtra)
grid.arrange(c1,c2, ncol=1)