Rev 25323 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{grid.copy}\alias{grid.copy}\title{Make a Copy of a Grid Graphical Object}\description{Grid graphical objects are references to list structures, which meansthat copies of graphical objects \dQuote{point} to the same liststructure.This function copies graphical objects by \emph{value}, which meansthat the copy \dQuote{points} to a separate list structure.}\usage{grid.copy(grob)}\arguments{\item{grob}{An object of class \code{"grob"}.}}\value{An object of class \code{"grob"}.}\author{Paul Murrell}\seealso{\code{\link{grid.grob}}.}\examples{## Create a graphical objectl <- grid.lines(draw=FALSE)## View the list.structgrid.get(l)## Copy by referencel2 <- l## Edit the common list.structgrid.edit(l2, gp=gpar(col="green"))## We have modified "l"grid.get(l)## Copy by valuel3 <- grid.copy(l)}\keyword{dplot}