how to combine two graphs in r code example Example: change how many plots you view r par(mfrow=c(2,2))