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