The R Project SVN R

Rev

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

Rev 25278 Rev 25323
Line 1... Line 1...
1
\name{grid.grob}
1
\name{grid.grob}
2
\alias{grid.grob}
2
\alias{grid.grob}
3
%- Also NEED an `\alias' for EACH other topic documented here.
-
 
4
\title{Create a Grid Graphical Object}
3
\title{Create a Grid Graphical Object}
5
\description{
4
\description{
6
  Creates a Grid graphical object.
5
  Creates a Grid graphical object.
7
}
6
}
8
\usage{
7
\usage{
9
grid.grob(list.struct, cl = NULL, draw = TRUE)
8
grid.grob(list.struct, cl = NULL, draw = TRUE)
10
}
9
}
11
%- maybe also `usage' for other objects documented here.
-
 
12
\arguments{
10
\arguments{
13
  \item{list.struct}{A list (preferably with each element named).}
11
  \item{list.struct}{A list (preferably with each element named).}
14
  \item{cl}{A string giving the class attribute for the \code{list.struct}}
12
  \item{cl}{A string giving the class attribute for the \code{list.struct}}
15
  \item{draw}{A logical value to indicate whether to produce
13
  \item{draw}{A logical value to indicate whether to produce
16
    graphical output.}
14
    graphical output.}
Line 31... Line 29...
31
\value{
29
\value{
32
  An object of class \code{"grob"}.
30
  An object of class \code{"grob"}.
33
}
31
}
34
\author{Paul Murrell}
32
\author{Paul Murrell}
35
\seealso{
33
\seealso{
-
 
34
  \code{\link{grid.draw}},
36
  \code{\link{grid.draw}}, \code{\link{grid.edit}}, \code{\link{grid.get}},
35
  \code{\link{grid.edit}},
-
 
36
  \code{\link{grid.get}},
37
  \code{\link{grid.copy}}.
37
  \code{\link{grid.copy}}.
38
}
38
}
39
 
39
 
40
\examples{
40
\examples{
41
# Create a graphical object
41
## Create a graphical object
42
l <- grid.lines(draw=FALSE)
42
l <- grid.lines(draw=FALSE)
43
# View the list.struct
43
## View the list.struct
44
grid.get(l)
44
grid.get(l)
45
# Copy by reference
45
## Copy by reference
46
l2 <- l
46
l2 <- l
47
# Edit the common list.struct
47
## Edit the common list.struct
48
grid.edit(l2, gp=gpar(col="green"))
48
grid.edit(l2, gp=gpar(col="green"))
49
# Copy by value
49
## Copy by value
50
l3 <- grid.copy(l)
50
l3 <- grid.copy(l)
51
}
51
}
52
\keyword{ dplot }%-- one or more ...
52
\keyword{dplot}