| Line 31... |
Line 31... |
| 31 |
\code{NA}.) If \code{density} is specified with a positive value
|
31 |
\code{NA}.) If \code{density} is specified with a positive value
|
| 32 |
this gives the color of the shading lines.}
|
32 |
this gives the color of the shading lines.}
|
| 33 |
\item{border}{the color to draw the border. The default, \code{NULL},
|
33 |
\item{border}{the color to draw the border. The default, \code{NULL},
|
| 34 |
means to use \code{\link{par}("fg")}. Use \code{border = NA} to
|
34 |
means to use \code{\link{par}("fg")}. Use \code{border = NA} to
|
| 35 |
omit borders.
|
35 |
omit borders.
|
| 36 |
|
36 |
|
| 37 |
For compatibility with S, \code{border} can also be logical, in
|
37 |
For compatibility with S, \code{border} can also be logical, in
|
| 38 |
which case \code{FALSE} is equivalent to \code{NA} (borders omitted)
|
38 |
which case \code{FALSE} is equivalent to \code{NA} (borders omitted)
|
| 39 |
and \code{TRUE} is equivalent to \code{NULL} (use the foreground colour),
|
39 |
and \code{TRUE} is equivalent to \code{NULL} (use the foreground colour),
|
| 40 |
}
|
40 |
}
|
| 41 |
\item{lty}{the line type to be used, as in \code{\link{par}}.}
|
41 |
\item{lty}{the line type to be used, as in \code{\link{par}}.}
|
| 42 |
\item{\dots}{graphical parameters such as \code{xpd}, \code{lend},
|
42 |
\item{\dots}{graphical parameters such as \code{xpd}, \code{lend},
|
| 43 |
\code{ljoin} and \code{lmitre} can be given as arguments.}
|
43 |
\code{ljoin} and \code{lmitre} can be given as arguments.}
|
| 44 |
\item{fillOddEven}{logical controlling the polygon shading mode: see
|
44 |
\item{fillOddEven}{logical controlling the polygon shading mode: see
|
| 45 |
below for details. Default \code{FALSE}.}
|
45 |
below for details. Default \code{FALSE}.}
|
| 46 |
}
|
46 |
}
|
| 47 |
\details{
|
47 |
\details{
|
| 48 |
The coordinates can be passed in a plotting structure
|
48 |
The coordinates can be passed in a plotting structure
|
| 49 |
(a list with \code{x} and \code{y} components), a two-column matrix,
|
49 |
(a list with \code{x} and \code{y} components), a two-column matrix,
|
| 50 |
\dots. See \code{\link{xy.coords}}.
|
50 |
\dots. See \code{\link{xy.coords}}.
|
| 51 |
|
51 |
|
| 52 |
It is assumed that the polygon is to be closed by joining the last
|
52 |
It is assumed that the polygon is to be closed by joining the last
|
| 53 |
point to the first point.
|
53 |
point to the first point.
|
| 54 |
|
54 |
|
| 55 |
The coordinates can contain missing values. The behaviour is similar
|
55 |
The coordinates can contain missing values. The behaviour is similar
|
| 56 |
to that of \code{\link{lines}}, except that instead of breaking a line
|
56 |
to that of \code{\link{lines}}, except that instead of breaking a line
|
| 57 |
into several lines, \code{NA} values break the polygon into several
|
57 |
into several lines, \code{NA} values break the polygon into several
|
| 58 |
complete polygons (including closing the last point to the first
|
58 |
complete polygons (including closing the last point to the first
|
| 59 |
point). See the examples below.
|
59 |
point). See the examples below.
|