Lay out multiple ggplot graphs on a page
问题 I generate a list of ggplot objects inside a loop as follows: myPlots = list() for(i in 1:length(maturities)){ myPlots[[i]] <- ggplot(deltaIR.df, aes(sample = deltaIR.df[,i])) + stat_qq() + stat_qq_line() + labs(title=maturities[i], x = "Theoretical (Normal)", y = "Empirical Distribution") } Depending on the dataset, there could be between 4 and 10 plots in myPlots. I now want to print them on one page in two rows, and have tried various methods with varying degrees of success. The most