| Line 21... |
Line 21... |
| 21 |
\item{x}{ A grid grob. }
|
21 |
\item{x}{ A grid grob. }
|
| 22 |
}
|
22 |
}
|
| 23 |
\details{
|
23 |
\details{
|
| 24 |
These functions are called by the \code{grid.draw} methods for grobs
|
24 |
These functions are called by the \code{grid.draw} methods for grobs
|
| 25 |
and gTrees.
|
25 |
and gTrees.
|
| 26 |
|
26 |
|
| 27 |
\code{makeContext} is called first during the drawing of a grob.
|
27 |
\code{makeContext} is called first during the drawing of a grob.
|
| 28 |
This function should be used to \emph{modify} the \code{vp} slot
|
28 |
This function should be used to \emph{modify} the \code{vp} slot
|
| 29 |
of \code{x} (and/or the \code{childrenvp} slot if \code{x}
|
29 |
of \code{x} (and/or the \code{childrenvp} slot if \code{x}
|
| 30 |
is a gTree). The function \emph{must} return the modified \code{x}.
|
30 |
is a gTree). The function \emph{must} return the modified \code{x}.
|
| 31 |
Note that
|
31 |
Note that
|
| 32 |
the default behaviour for grobs is to push any viewports in the
|
32 |
the default behaviour for grobs is to push any viewports in the
|
| 33 |
\code{vp} slot, and for gTrees is to also push and up any viewports in the
|
33 |
\code{vp} slot, and for gTrees is to also push and up any viewports in the
|
| 34 |
\code{childrenvp} slot, so this function is used to customise the
|
34 |
\code{childrenvp} slot, so this function is used to customise the
|
| 35 |
drawing context for a grob or gTree.
|
35 |
drawing context for a grob or gTree.
|
| 36 |
|
36 |
|
| 37 |
\code{makeContent} is called next and is where any additional
|
37 |
\code{makeContent} is called next and is where any additional
|
| 38 |
calculations should occur and graphical content should
|
38 |
calculations should occur and graphical content should
|
| 39 |
be generated (see, for example,
|
39 |
be generated (see, for example,
|
| 40 |
\code{grid:::makeContent.xaxis}.
|
40 |
\code{grid:::makeContent.xaxis}.
|
| 41 |
This function should be used to \emph{modify} the \code{children}
|
41 |
This function should be used to \emph{modify} the \code{children}
|