![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEindRDLhtZhtBcZupABYgNX8Ti4zZjMTKP4GWWW76_o8202jXC67FGWJAZdWEboEaUhcXztFRWtOAg3axRVc3CjtTp7sm4a8otU6K0-yGhth3iaf2vFBntWS-4gLtHk2H1Iv_H_218uQE8/s72-c/arrange_ggplot2.png)
In a previous tutorial I showed you how to create plots faceted by the level of a third variable using ggplot2. A commenter asked about using faceted plots and viewports and reminded me of this function I found in the ggplot2 Google group. The arrange function below is similar to using par(mfrow=c(r,c)) in base graphics to put more than one plot in the same image window.