| Line 30... |
Line 30... |
| 30 |
\item{id.lengths}{A numeric vector used to separate locations in \code{x} and
|
30 |
\item{id.lengths}{A numeric vector used to separate locations in \code{x} and
|
| 31 |
\code{y} into multiple xspline. Specifies consecutive blocks of
|
31 |
\code{y} into multiple xspline. Specifies consecutive blocks of
|
| 32 |
locations which make up separate xsplines.}
|
32 |
locations which make up separate xsplines.}
|
| 33 |
\item{default.units}{A string indicating the default units to use
|
33 |
\item{default.units}{A string indicating the default units to use
|
| 34 |
if \code{x} or \code{y}
|
34 |
if \code{x} or \code{y}
|
| 35 |
are only given as numeric vectors.}
|
35 |
are only given as numeric vectors.}
|
| 36 |
\item{shape}{A numeric vector of values between -1 and 1, which
|
36 |
\item{shape}{A numeric vector of values between -1 and 1, which
|
| 37 |
control the shape of the spline relative to the control points.}
|
37 |
control the shape of the spline relative to the control points.}
|
| 38 |
\item{open}{A logical value indicating whether the spline is
|
38 |
\item{open}{A logical value indicating whether the spline is
|
| 39 |
a line or a closed shape.}
|
39 |
a line or a closed shape.}
|
| 40 |
\item{arrow}{A list describing arrow heads to place at either end
|
40 |
\item{arrow}{A list describing arrow heads to place at either end
|
| 41 |
of the xspline, as produced by the \code{arrow} function.}
|
41 |
of the xspline, as produced by the \code{arrow} function.}
|
| 42 |
\item{repEnds}{A logical value indicating whether the first and
|
42 |
\item{repEnds}{A logical value indicating whether the first and
|
| 43 |
last control points should be replicated for drawing the curve
|
43 |
last control points should be replicated for drawing the curve
|
| Line 79... |
Line 79... |
| 79 |
actually replicated before the curve is drawn. A curve is drawn
|
79 |
actually replicated before the curve is drawn. A curve is drawn
|
| 80 |
between (interpolating or approximating)
|
80 |
between (interpolating or approximating)
|
| 81 |
the second and third of each set of four control points, so
|
81 |
the second and third of each set of four control points, so
|
| 82 |
this default behaviour ensures that
|
82 |
this default behaviour ensures that
|
| 83 |
the resulting curve starts at the first control point you have
|
83 |
the resulting curve starts at the first control point you have
|
| 84 |
specified and ends at the last control point.
|
84 |
specified and ends at the last control point.
|
| 85 |
The default
|
85 |
The default
|
| 86 |
behaviour can be turned off via the \code{repEnds} argument,
|
86 |
behaviour can be turned off via the \code{repEnds} argument,
|
| 87 |
in which case the curve that is drawn starts (approximately) at
|
87 |
in which case the curve that is drawn starts (approximately) at
|
| 88 |
the second control point and ends (approximately) at the first and
|
88 |
the second control point and ends (approximately) at the first and
|
| 89 |
second-to-last control point.
|
89 |
second-to-last control point.
|
| 90 |
|
90 |
|
| 91 |
The \code{repEnds} argument is ignored for closed xsplines.
|
91 |
The \code{repEnds} argument is ignored for closed xsplines.
|
| 92 |
|
92 |
|
| 93 |
Missing values are not allowed for \code{x} and \code{y}
|
93 |
Missing values are not allowed for \code{x} and \code{y}
|
| 94 |
(i.e., it is not valid for a control point to be missing).
|
94 |
(i.e., it is not valid for a control point to be missing).
|
| 95 |
|
95 |
|
| 96 |
For closed xsplines, a curve is automatically drawn
|
96 |
For closed xsplines, a curve is automatically drawn
|
| 97 |
between the final control point and the initial control point.
|
97 |
between the final control point and the initial control point.
|
| 98 |
}
|
98 |
}
|
| 99 |
\references{
|
99 |
\references{
|
| 100 |
Blanc, C. and Schlick, C. (1995),
|
100 |
Blanc, C. and Schlick, C. (1995),
|
| 101 |
"X-splines : A Spline Model Designed for the End User",
|
101 |
"X-splines : A Spline Model Designed for the End User",
|
| 102 |
in \emph{Proceedings of SIGGRAPH 95}, pp. 377--386.
|
102 |
in \emph{Proceedings of SIGGRAPH 95}, pp. 377--386.
|
| 103 |
\url{http://dept-info.labri.fr/~schlick/DOC/sig1.html}
|
103 |
\url{http://dept-info.labri.fr/~schlick/DOC/sig1.html}
|
| 104 |
}
|
104 |
}
|
| 105 |
\seealso{
|
105 |
\seealso{
|
| 106 |
\link{Grid},
|
106 |
\link{Grid},
|
| 107 |
\code{\link{viewport}},
|
107 |
\code{\link{viewport}},
|