Plotting over multiple pages

后端 未结 2 1162
别跟我提以往
别跟我提以往 2020-11-27 17:55

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

相关标签:
2条回答
  • 2020-11-27 18:10

    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".

    0 讨论(0)
  • 2020-11-27 18:18

    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 . . .

    0 讨论(0)
提交回复
热议问题