lines.density.circular {circular} | R Documentation |
The lines
add a plot for density.circular
objects.
## 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, ...)
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 . |
None.
Claudio Agostinelli
density.circular
and plot.density.circular
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)