# circdensity

From spatstat v1.61-0
by Adrian Baddeley

##### Density Estimation for Circular Data

Computes a kernel smoothed estimate of the probability density for angular data.

- Keywords
- smooth, nonparametric

##### Usage

```
circdensity(x, sigma = "nrd0", …,
bw = NULL,
weights=NULL, unit = c("degree", "radian"))
```

##### Arguments

- x
Numeric vector, containing angular data.

- sigma
Smoothing bandwidth, or bandwidth selection rule, passed to

`density.default`

.- bw
Alternative to

`sigma`

for consistency with other functions.- …
Additional arguments passed to

`density.default`

, such as`kernel`

and`weights`

.- weights
Optional numeric vector of weights for the data in

`x`

.- unit
The unit of angle in which

`x`

is expressed.

##### Details

The angular values `x`

are smoothed using
(by default) the wrapped Gaussian kernel with standard deviation `sigma`

.

##### Value

An object of class `"density"`

(produced by
`density.default`

) which can be plotted
by `plot`

or by `rose`

.

##### See Also

##### Examples

```
# NOT RUN {
ang <- runif(1000, max=360)
rose(circdensity(ang, 12))
# }
```

*Documentation reproduced from package spatstat, version 1.61-0, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.