View source: R/plotting_functions.R
plot_circ_hist | R Documentation |
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)
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 [-π, π). |
nbars |
numeric integer, the number of bins (bars) in the histogram. |
A 'ggplot
' object.
Hodelmethodcylcop
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.