Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

## S3 method for class 'circular'
lines(x, y, join = FALSE, nosort = FALSE, offset=1, shrink=1,
  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.

offset

the radius of the circle

shrink

parameter that controls the size of the plotted function. Default is 1.

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.

Author(s)

Claudio Agostinelli

See Also

Examples

x <- rvonmises(20, circular(0), 10)
y <- runif(20, 0.5, 1)

plot(x, shrink=2)
lines(x, y)

circular

Circular Statistics

v0.4-93
GPL-2
Authors
Ulric Lund <ulund@calpoly.edu> [aut], Claudio Agostinelli <claudio.agostinelli@unitn.it> [aut, cre], Hiroyoshi Arai <h_arai@aoni.waseda.jp> [ctb], Alessando Gagliardi <gagliardi@stud.unive.it> [ctb], Eduardo Garcia Portugues <edgarcia@est-econ.uc3m.es> [ctb], Dimitri Giunchi <dimitri.giunchi@unipi.it> [ctb], Jean-Olivier Irisson <irisson@normalesup.org> [ctb], Matthew Pocernich <pocernic@ucar.edu> [ctb], Federico Rotolo [ctb]
Initial release
2017-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.