
Last chance! 50% off unlimited learning
Sale ends in
Computes a kernel smoothed estimate of the probability density for angular data.
circdensity(x, sigma = "nrd0", …,
bw = NULL,
weights=NULL, unit = c("degree", "radian"))
Numeric vector, containing angular data.
Smoothing bandwidth, or bandwidth selection rule, passed to
density.default
.
Alternative to sigma
for consistency with other functions.
Additional arguments passed to
density.default
,
such as kernel
and weights
.
Optional numeric vector of weights for the data in x
.
The unit of angle in which x
is expressed.
An object of class "density"
(produced by
density.default
) which can be plotted
by plot
or by rose
.
The angular values x
are smoothed using
(by default) the wrapped Gaussian kernel with standard deviation sigma
.
# NOT RUN {
ang <- runif(1000, max=360)
rose(circdensity(ang, 12))
# }
Run the code above in your browser using DataLab