\Header{grid.grob}{Create a Grid Graphical Object}
\alias{gList}{grid.grob}
\alias{grob}{grid.grob}
\alias{gTree}{grid.grob}
\keyword{dplot}{grid.grob}
\begin{Description}\relax
These functions create grid graphical objects.
\end{Description}
\begin{Usage}
\begin{verbatim}
grid.grob(list.struct, cl = NULL, draw = TRUE)
grob(..., name = NULL, gp = NULL, vp = NULL, cl = NULL) 
gTree(..., name = NULL, gp = NULL, vp = NULL, children = NULL, 
      childrenvp = NULL, cl = NULL)
gList(...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{...}] For \code{grob} and \code{gTree}, the
named slots describing important features of
the graphical object. For \code{gList}, a series of grob objects. 
\item[\code{list.struct}] A list (preferably with each element named).
\item[\code{name}] A character identifier for the grob.  Used to find the
grob on the display list and/or as a child of another grob. 
\item[\code{children}] A gList object. 
\item[\code{childrenvp}] A viewport object (or \code{NULL}).
\item[\code{gp}] A gpar object, typically the output
from a call to the function \code{gpar}.  This is basically
a list of graphical parameter settings.
\item[\code{vp}] A viewport object (or \code{NULL}).
\item[\code{cl}] A string giving the class attribute for the \code{list.struct}
\item[\code{draw}] A logical value to indicate whether to produce
graphical output.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
These functions can be used to create a basic grob, gTree, or gList
object, or a new class derived from one of these.

A grid graphical object (grob) is a description of a graphical
item.  These basic classes provide default behaviour for
validating, drawing,
and modifying graphical objects.  Both call the function
\code{validDetails} to check that the object returned is coherent.

A gTree can have other grobs as children;  when a gTree is drawn, it
draws all of its children.  Before drawing its children, a gTree
pushes its childrenvp slot and then navigates back up (calls
\code{upViewport}) so that the children can specify their location
within the childrenvp via a vpPath.

All grid primitives (\code{grid.lines}, \code{grid.rect}, ...) and
some higher-level grid components (e.g., \code{grid.xaxis} and
\code{grid.yaxis}) are derived from these classes.

\code{grid.grob} is deprecated.
\end{Details}
\begin{Value}
A grob object.
\end{Value}
\begin{Author}\relax
Paul Murrell
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{grid.draw}},
\code{\Link{grid.edit}},
\code{\Link{grid.get}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
\end{ExampleCode}
\end{Examples}

