The R Project SVN R

Rev

Rev 59039 | Rev 85983 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61433
Line 11... Line 11...
11
\description{
11
\description{
12
  Add a grob to a gTree or a descendant of a gTree.
12
  Add a grob to a gTree or a descendant of a gTree.
13
}
13
}
14
\usage{
14
\usage{
15
grid.add(gPath, child, strict = FALSE, grep = FALSE,
15
grid.add(gPath, child, strict = FALSE, grep = FALSE,
16
         global = FALSE, allDevices = FALSE, redraw = TRUE) 
16
         global = FALSE, allDevices = FALSE, redraw = TRUE)
17
 
17
 
18
addGrob(gTree, child, gPath = NULL, strict = FALSE, grep = FALSE,
18
addGrob(gTree, child, gPath = NULL, strict = FALSE, grep = FALSE,
19
        global = FALSE, warn = TRUE)
19
        global = FALSE, warn = TRUE)
20
 
20
 
21
setChildren(x, children)
21
setChildren(x, children)
Line 49... Line 49...
49
  \item{redraw}{A logical value to indicate whether to redraw the grob. }
49
  \item{redraw}{A logical value to indicate whether to redraw the grob. }
50
}
50
}
51
\details{
51
\details{
52
  \code{addGrob} copies the specified grob and returns a modified
52
  \code{addGrob} copies the specified grob and returns a modified
53
  grob.
53
  grob.
54
  
54
 
55
  \code{grid.add} destructively modifies a grob on the display list.
55
  \code{grid.add} destructively modifies a grob on the display list.
56
  If \code{redraw}
56
  If \code{redraw}
57
  is \code{TRUE} it then redraws everything to reflect the change.
57
  is \code{TRUE} it then redraws everything to reflect the change.
58
  
58
 
59
  \code{setChildren} is a basic function for setting all children
59
  \code{setChildren} is a basic function for setting all children
60
  of a gTree at once (instead of repeated calls to \code{addGrob}).
60
  of a gTree at once (instead of repeated calls to \code{addGrob}).
61
}
61
}
62
\value{
62
\value{
63
  \code{addGrob} returns a grob object;  \code{grid.add} returns \code{NULL}.
63
  \code{addGrob} returns a grob object;  \code{grid.add} returns \code{NULL}.