Learn R Programming

circular (version 0.3-1)

lines.circular: Add Connected Line Segments to a Circular Plot

Description

A method taking coordinates in a polar system and joining the corresponding points with line segments.

Usage

lines.circular(x, y, join = FALSE, nosort = FALSE, plot.info = NULL, zero = NULL, rotation = NULL, modulo = NULL, ...)

Arguments

x
a vector of class circular.
y
a vector with the same length as 'x'.
join
logical: if TRUE the first and the last values are joined by a line.
nosort
logical: if TRUE the data are not sorted before join them.
plot.info
an object from another circular graphic function.
zero
the zero of the axis.
rotation
the rotation of the axis.
modulo
the modulo applied to 'x' before sorting.
...
graphical parameters passed to lines.default.

Value

  • A list with information on the plot: zero, rotation and next.points.

See Also

plot.circular

Examples

Run this code
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