powered by
This function produces a circular histogram of turn angles, i.e. angles on the the half-circle between -pi and pi.
plot_circ_hist(theta, nbars = 20)
A 'ggplot' object.
ggplot
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)\).
numeric integer, the number of bins (bars) in the histogram.
Hodelmethodcylcop
plot_joint_scat().
plot_joint_scat()
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)
Run the code above in your browser using DataLab