This function does the paging, using
devAskNewPage(). This means we
can just call plots and R will make the prompt for us
Warning, this function has side effects! It modifies
which plots are to be created
number of pages to span the plots accross
Code is stolen and modified from plot.R in mgcv by Simon Wood
David L. Miller, based on code by Simon N. Wood
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.