lines.density.circular {circular}R Documentation

Add a Plot for Kernel Density Estimation for Circular Data

Description

The lines add a plot for density.circular objects.

Usage

## S3 method for class 'density.circular':
lines(x, type = "l", zero.line = TRUE, points.plot = FALSE, points.col = 1, points.pch = 1, plot.type = c("circle", "line"), bins, shrink = 1, tcl = 0.025, ...)

Arguments

x an object of class density.circular.
type plotting parameter with useful default.
zero.line logical; if TRUE, add a base line at y = 0. Used when plot.type is "line".
points.plot logical; if TRUE original data are added to the plot.
points.col, points.pch parameters used to draw the points.
plot.type type of the plot.
bins number of ticks to plot.
shrink parameter that controls the size of the plotted circle. Default is 1. Larger values shrink the circle, while smaller values enlarge the circle.
tcl length of the ticks.
... futher parameters passed to lines.default.

Value

None.

Author(s)

Claudio Agostinelli

See Also

density.circular and plot.density.circular

Examples

x <- rvonmises(n=100, mu=pi, kappa=2)
res25 <- density(x, bw=25)
plot(res25, points.plot=TRUE, xlim=c(-1.5,1))
res50 <- density(x, bw=25, adjust=2)
lines(res50, col=2)

[Package Contents]