The R Project SVN R

Rev

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

Rev 59039 Rev 61433
Line 13... Line 13...
13
  Grid graphics provides an alternative to the standard R graphics.
13
  Grid graphics provides an alternative to the standard R graphics.
14
  The user is able to define arbitrary rectangular regions (called
14
  The user is able to define arbitrary rectangular regions (called
15
  \emph{viewports}) on the graphics device and define a number of
15
  \emph{viewports}) on the graphics device and define a number of
16
  coordinate systems for each region.  Drawing can be specified to occur
16
  coordinate systems for each region.  Drawing can be specified to occur
17
  in any viewport using any of the available coordinate systems.
17
  in any viewport using any of the available coordinate systems.
18
  
18
 
19
  Grid graphics and standard R graphics do not mix!
19
  Grid graphics and standard R graphics do not mix!
20
 
20
 
21
  Type \code{library(help = grid)} to see a list of (public)
21
  Type \code{library(help = grid)} to see a list of (public)
22
  Grid graphics functions.
22
  Grid graphics functions.
23
}
23
}
Line 26... Line 26...
26
  \code{\link{viewport}},
26
  \code{\link{viewport}},
27
  \code{\link{grid.layout}}, and
27
  \code{\link{grid.layout}}, and
28
  \code{\link{unit}}.
28
  \code{\link{unit}}.
29
}
29
}
30
\examples{
30
\examples{
31
## Diagram of a simple layout 
31
## Diagram of a simple layout
32
grid.show.layout(grid.layout(4,2,
32
grid.show.layout(grid.layout(4,2,
33
                     heights=unit(rep(1, 4),
33
                     heights=unit(rep(1, 4),
34
                                  c("lines", "lines", "lines", "null")),
34
                                  c("lines", "lines", "lines", "null")),
35
                     widths=unit(c(1, 1), "inches")))
35
                     widths=unit(c(1, 1), "inches")))
36
## Diagram of a sample viewport
36
## Diagram of a sample viewport