plot_circ_hist {cylcop}R Documentation

Circular Histogram of Turn Angles

Description

This function produces a circular histogram of turn angles, i.e. angles on the the half-circle between -pi and pi.

Usage

plot_circ_hist(theta, nbars = 20)

Arguments

theta

numeric vector of angles (measurements of a circular variable) or "circular" component of pseudo-observations. They must be on the half-circle, i.e. theta must be in [-\pi, \pi).

nbars

numeric integer, the number of bins (bars) in the histogram.

Value

A 'ggplot' object.

References

Hodel FH, Fieberg JR (2021). “Cylcop: An R Package for Circular-Linear Copulae with Angular Symmetry.” bioRxiv. doi:10.1101/2021.07.14.452253, https://www.biorxiv.org/content/10.1101/2021.07.14.452253v3/.

See Also

plot_joint_scat().

Examples

set.seed(123)

theta <- cylcop::rvonmisesmix(n = 100,
  mu = c(0, pi),
  kappa = c(5, 2),
  prop = c(4, 2)
)
plot1 <- plot_circ_hist(theta)


[Package cylcop version 0.2.0 Index]