Following Josh O’Brien’s example: I’m surprised no one has mentioned grid.arrange
from the gridExtra
package yet:
library(gridExtra)
grid.arrange(q1,q2,q3,q4,q5,q6,nrow=3)
This seems to be mentioned here: multiple graphs in one canvas using ggplot2
For me, it’s much easier than remembering all the viewport stuff.