The R Project SVN R

Rev

Rev 25278 | Rev 32019 | 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.rect}
1
\name{grid.rect}
2
\alias{grid.rect}
2
\alias{grid.rect}
3
%- Also NEED an `\alias' for EACH other topic documented here.
-
 
4
\title{Draw a rectangle in a Grid Viewport}
3
\title{Draw a rectangle in a Grid Viewport}
5
\description{
4
\description{
6
  This function draws a rectangle.
5
  This function draws a rectangle.
7
}
6
}
8
\usage{
7
\usage{
9
grid.rect(x = unit(0.5, "npc"), y = unit(0.5, "npc"),
8
grid.rect(x = unit(0.5, "npc"), y = unit(0.5, "npc"),
10
      width = unit(1, "npc"), height = unit(1, "npc"),
9
      width = unit(1, "npc"), height = unit(1, "npc"),
11
      just = "centre", default.units = "npc", 
10
      just = "centre", default.units = "npc", 
12
      gp=gpar(), draw = TRUE, vp = NULL)
11
      gp=gpar(), draw = TRUE, vp = NULL)
13
}
12
}
14
%- maybe also `usage' for other objects documented here.
-
 
15
\arguments{
13
\arguments{
16
  \item{x}{A numeric vector or unit object specifying x-location.}
14
  \item{x}{A numeric vector or unit object specifying x-location.}
17
  \item{y}{A numeric vector or unit object specifying y-location.}
15
  \item{y}{A numeric vector or unit object specifying y-location.}
18
  \item{width}{A numeric vector or unit object specifying width.}
16
  \item{width}{A numeric vector or unit object specifying width.}
19
  \item{height}{A numeric vector or unit object specifying height.}
17
  \item{height}{A numeric vector or unit object specifying height.}
Line 40... Line 38...
40
\author{Paul Murrell}
38
\author{Paul Murrell}
41
\seealso{
39
\seealso{
42
  \link{Grid},
40
  \link{Grid},
43
  \code{\link{viewport}}
41
  \code{\link{viewport}}
44
}
42
}
45
 
-
 
46
\examples{
43
\keyword{dplot}
47
}
-
 
48
\keyword{ dplot }%-- one or more ...
-