I\'m having trouble adding page numbers to PDFs. Here\'s how I\'m inserting pages / plots:
pdf( file = pdfFilePath , width = 11 , height = 8.5 ) for ( ...
library(ggplot2) plots = replicate(8, qplot(1,1)) library(gridExtra) p <- do.call(marrangeGrob, c(plots, list(ncol=2, nrow=2, top =NULL, bottom = quote(quote(paste(g, "/",pages)))))) p ggsave("multipage.pdf", p)
(the quote(quote()) is needed to maintain lazy evaluation, somehow)
quote(quote())