
A method taking coordinates in a polar system and joining the corresponding points with line segments.
# S3 method for circular
lines(x, y, join = FALSE, nosort = FALSE, offset=1, shrink=1,
plot.info = NULL, zero = NULL, rotation = NULL, modulo = NULL, ...)
A list with information on the plot: zero, rotation and next.points.
a vector of class circular
.
a vector with the same length as 'x'.
logical: if TRUE
the first and the last values are joined by a line.
logical: if TRUE
the data are not sorted before
join them.
the radius of the circle
parameter that controls the size of the plotted function. Default is 1.
an object from another circular graphic function.
the zero of the axis.
the rotation of the axis.
the modulo applied to 'x' before sorting.
graphical parameters passed to lines.default
.
Claudio Agostinelli
plot.circular
x <- rvonmises(20, circular(0), 10)
y <- runif(20, 0.5, 1)
plot(x, shrink=2)
lines(x, y)
Run the code above in your browser using DataLab