Solution to kurdtc's question does not work anymore:
library(grid)
library(png)
plots <- lapply(ll <- list.files(patt='.*[.]png'),function(x){
img <- as.raster(readPNG(x))
rasterGrob(img, interpolate = FALSE)
})
library(ggplot2)
library(gridExtra)
ggsave("Plots_Combined.png",width=8.5, height=11,
do.call(marrangeGrob, c(plots, list(nrow=2, ncol=1,top=NULL))))
The marrangeGrob function gives the following error: Error: nrow * ncol >= n is not TRUE , where 2 png files are in the current folder (it should work). Have there been any updates to the marrangeGrob function that affect this functionality?