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 devAskNewPage
!
# S3 method for layout
plot(which, pages)
which plots are to be created
number of pages to span the plots across
David L. Miller, based on code by Simon N. Wood
Code is stolen and modified from plot.R
in mgcv
by Simon Wood