The R Project SVN R

Rev

Rev 25278 | Rev 42333 | 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.show.layout}
1
\name{grid.show.layout}
2
\alias{grid.show.layout}
2
\alias{grid.show.layout}
3
%- Also NEED an `\alias' for EACH other topic documented here.
-
 
4
\title{Draw a Diagram of a Grid Layout}
3
\title{Draw a Diagram of a Grid Layout}
5
\description{
4
\description{
6
  This function uses Grid graphics to draw a diagram of a
5
  This function uses Grid graphics to draw a diagram of a
7
  Grid layout.
6
  Grid layout.
8
}
7
}
9
\usage{
8
\usage{
10
grid.show.layout(l, newpage=TRUE,
9
grid.show.layout(l, newpage=TRUE,
11
             cell.border = "blue", cell.fill = "light blue",
10
             cell.border = "blue", cell.fill = "light blue",
12
             cell.label = TRUE, vp = NULL) 
11
             cell.label = TRUE, vp = NULL) 
13
}
12
}
14
%- maybe also `usage' for other objects documented here.
-
 
15
\arguments{
13
\arguments{
16
  \item{l}{A Grid layout object.}
14
  \item{l}{A Grid layout object.}
17
  \item{newpage}{A logical value indicating whether to move on
15
  \item{newpage}{A logical value indicating whether to move on
18
    to a new page before drawing the diagram.}
16
    to a new page before drawing the diagram.}
19
  \item{cell.border}{The colour used to draw the borders of the cells
17
  \item{cell.border}{The colour used to draw the borders of the cells
Line 41... Line 39...
41
  \code{\link{viewport}},
39
  \code{\link{viewport}},
42
  \code{\link{grid.layout}}
40
  \code{\link{grid.layout}}
43
}
41
}
44
 
42
 
45
\examples{
43
\examples{
46
# Diagram of a simple layout 
44
## Diagram of a simple layout 
47
grid.show.layout(grid.layout(4,2,
45
grid.show.layout(grid.layout(4,2,
48
                     heights=unit(rep(1, 4),
46
                     heights=unit(rep(1, 4),
49
                                  c("lines", "lines", "lines", "null")),
47
                                  c("lines", "lines", "lines", "null")),
50
                     widths=unit(c(1, 1), "inches")))
48
                     widths=unit(c(1, 1), "inches")))
51
}
49
}
52
\keyword{ dplot }%-- one or more ...
50
\keyword{dplot}