Rev 78769 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/grid/man/grid.newpage.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{grid.newpage}\alias{grid.newpage}\title{Move to a New Page on a Grid Device}\description{This function erases the current device or moves to a new page.}\usage{grid.newpage(recording = TRUE, clearGroups = TRUE)}\arguments{\item{recording}{A logical value to indicate whether the new-pageoperation should be saved onto the Grid display list.}\item{clearGroups}{A logical value indicating whether any groupsthat have been defined on the current page should bereleased (see \code{\link{grid.group}}).}}\details{The new page is painted with the fill colour(\code{\link{gpar}("fill")}), which is often transparent. For deviceswith a \emph{canvas} colour (the on-screen devices \code{X11},\code{windows} and \code{quartz}), the page is first painted with thecanvas colour and then the background colour.There are two hooks called \code{"before.grid.newpage"} and\code{"grid.newpage"} (see \code{\link{setHook}}). The latteris used in the testing code to annotate the new page. The hookfunction(s) are called with no argument. (If the value is a characterstring, \code{get} is called on it from within the \pkg{grid}namespace.)}\value{None.}\author{Paul Murrell}\seealso{\link{Grid}}\keyword{dplot}