Learn R Programming

circular (version 0.5-1)

arrows.circular: Add Arrows to a Circular Plot

Description

Draw arrows in a circular plot.

Usage

arrows.circular(x, y = NULL, x0 = 0, y0 = 0, na.rm = FALSE, 
  shrink = 1, plot.info = NULL, zero = NULL, rotation = NULL, ...)

Arguments

x

a vector. The object is coerced to class circular.

y

a vector with the same length as x.

x0

a vector of origins (x axis).

y0

a vector of origins (y axis).

na.rm

logical, indicating if NA's should be omitted.

shrink

parameter that controls the size of the plotted circle. Default is 1. Larger values shrink the circle, while smaller values enlarge the circle.

plot.info

an object from plot.circular that contains information on the zero, the rotation and next.points.

zero

the zero used in the plot. Ignored if plot.info is provided.

rotation

the rotation used in the plot. Ignored if plot.info is provided.

...

further parameters passed to arrows.

Author

Claudio Agostinelli

See Also

Examples

Run this code
  plot(rvonmises(10, circular(0), kappa=1))
  arrows.circular(rvonmises(10, circular(0), kappa=1))
  arrows.circular(rvonmises(10, circular(0), kappa=1), y=runif(10), col=2)
  arrows.circular(rvonmises(10, circular(0), kappa=1), y=runif(10), 
    x0=runif(10, -1, 1), y0=runif(10, -1, 1), col=3)

Run the code above in your browser using DataLab