At the moment I wish to plot multiple plots in the same window, using ggplot2. I've searched on the Internet and I found out that the gridExtra::grid.arrange
function will do the job.
For it to work, I have to include each plot in the argument as gridExtra::grid.arrange(plot1,plot2,plot3,...,plotN)
. But, what if I would like to make a more generic use of this function and would like to enter a list of plots? myList <- list(plot1,plot2,...plotN)
Inputing a list of plots and inputing in the form of unlist(myList)
in the function gives an error. So, would would be the solution for this problem?