Rev 25323 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{grid.collection}\alias{grid.collection}\title{Create a Coherent Group of Grid Graphical Objects}\description{This function creates a graphical object which containsseveral other graphical objects. When it is drawn, it drawsall of its children.It may be convenient to name the elements of the collection.}\usage{grid.collection(..., gp=gpar(), draw=TRUE, vp=NULL)}\arguments{\item{\dots}{Zero or more objects of class \code{"grob"}.}\item{gp}{An object of class \code{gpar}, typically the outputfrom a call to the function \code{gpar}. This is basicallya list of graphical parameter settings.}\item{draw}{A logical value to indicate whether to producegraphical output.}\item{vp}{A Grid viewport object (or NULL).}}\value{An object of class \code{"grob"} containing a list structureof class \code{"collection"}.}\author{Paul Murrell}\seealso{\code{\link{grid.grob}}.}\examples{grid.newpage()lc <- grid.collection(l1=grid.lines(draw=FALSE),l2=grid.lines(c(.5, .5), draw=FALSE))grid.edit(lc, gp=gpar(col="blue"))grid.edit(lc, "children", "l2", gp=gpar(col="red"))}\keyword{dplot}