I\'m trying to write a function that plots a ggplot facet_wrap
plot over multiple pages. It\'s just a hack, as this feature seems to be on the ggplot2 feature t
Exactly. Page 39 of the ggplot2 book tells us that when you create ggplot2 objects, you can "Render it on screen, with print(). This happens automatically when running interactively, but inside a loop or function, you'll need to print() it yourself".
I think the problem is that you need print() around your last line (p+ ...) to get it to actually print to the device inside the for loop . . .