The R Project SVN R

Rev

Rev 25278 | Rev 56184 | 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}
1
\name{Grid}
2
\alias{Grid}
2
\alias{Grid}
3
%- Also NEED an `\alias' for EACH other topic documented here.
-
 
4
\title{Grid Graphics}
3
\title{Grid Graphics}
5
\description{
4
\description{
6
  General information about the grid graphics package.
5
  General information about the grid graphics package.
7
}
6
}
8
\usage{
-
 
9
}
-
 
10
\arguments{
-
 
11
}
-
 
12
%- maybe also `usage' for other objects documented here.
-
 
13
\details{
7
\details{
14
  Grid graphics provides an alternative to the standard R graphics.
8
  Grid graphics provides an alternative to the standard R graphics.
15
  The user is able to define arbitrary rectangular regions (called
9
  The user is able to define arbitrary rectangular regions (called
16
  \emph{viewports}) on the
-
 
17
  graphics device and define a number of coordinate systems for each
10
  \emph{viewports}) on the graphics device and define a number of
18
  region.  Drawing can be specified to occur in any viewport using
11
  coordinate systems for each region.  Drawing can be specified to occur
19
  any of the available coordinate systems.
12
  in any viewport using any of the available coordinate systems.
20
  
13
  
21
  Grid graphics and standard R graphics do not mix!
14
  Grid graphics and standard R graphics do not mix!
22
 
15
 
23
  Type \code{library(help = grid)} to see a list of (public)
16
  Type \code{library(help = grid)} to see a list of (public)
24
  Grid graphics functions.
17
  Grid graphics functions.
Line 28... Line 21...
28
  \code{\link{viewport}},
21
  \code{\link{viewport}},
29
  \code{\link{grid.layout}}, and
22
  \code{\link{grid.layout}}, and
30
  \code{\link{unit}}.
23
  \code{\link{unit}}.
31
}
24
}
32
\examples{
25
\examples{
33
# Diagram of a simple layout 
26
## Diagram of a simple layout 
34
grid.show.layout(grid.layout(4,2,
27
grid.show.layout(grid.layout(4,2,
35
                     heights=unit(rep(1, 4),
28
                     heights=unit(rep(1, 4),
36
                                  c("lines", "lines", "lines", "null")),
29
                                  c("lines", "lines", "lines", "null")),
37
                     widths=unit(c(1, 1), "inches")))
30
                     widths=unit(c(1, 1), "inches")))
38
# Diagram of a sample viewport
31
## Diagram of a sample viewport
39
grid.show.viewport(viewport(x=0.6, y=0.6,
32
grid.show.viewport(viewport(x=0.6, y=0.6,
40
                            w=unit(1, "inches"), h=unit(1, "inches")))
33
                            w=unit(1, "inches"), h=unit(1, "inches")))
41
# A flash plotting example
34
## A flash plotting example
42
grid.multipanel(vp=viewport(0.5, 0.5, 0.8, 0.8))
35
grid.multipanel(vp=viewport(0.5, 0.5, 0.8, 0.8))
43
}
36
}
44
 
-
 
45
\keyword{dplot}%-- one or more ...
37
\keyword{dplot}
46
 
-