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, ...)
density.circular
.TRUE
, add a base line at $y =
0$. Used when plot.type
is "line"
.TRUE
original data are added to
the plot.lines.default
.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)
Run the code above in your browser using DataLab