cbarplot  R Documentation 
Function cbarplot
can be used to plot 2dimensional
circular bar plots. The circular bar plots can only adopt the
heightproportional transformation because of the white space between bars.
cbarplot( x, nbins = 36, radius = 1/sqrt(base::pi), prob = TRUE, nlabels = 4, col = NULL, border = NULL, m = NA, xlim = NULL, ylim = NULL, main = NULL )
x 
a numeric vector storing angular values between 0 and 2 pi, or an object that can be coerced to. 
nbins 
the number of bins of the circular bar plot. Internally, it is rounded to a multiple of 4. 
radius 
the radius of the reference circle. 
prob 
logical; if 
nlabels 
integer, for the number of levels to be plotted; if

col 
the color to fill the bars. 
border 
the color of the border around the bars. 
m 
the number of points within each bin to plot the top of a bar. The larger the number is, the smoother the plot looks. 
xlim 
numeric vectors of length 2, giving the x coordinates ranges. 
ylim 
numeric vectors of length 2, giving the y coordinates ranges. 
main 
the main title (on top) 
No return value
Danli Xu <dxu452@aucklanduni.ac.nz>, Yong Wang <yongwang@auckland.ac.nz>
Xu, D. and Wang, Y. (2020). Areaproportional Visualization for Circular Data. Journal of Computational and Graphical Statistics, 29, 351357.
cdensity
, cdotplot
, chist
# 600 observations from two von Mises distributions library(circular) x = c(rvonmises(200, circular(pi/4), 5), rvonmises(400, circular(pi), 20)) cbarplot(x) cbarplot(x, prob=FALSE) cbarplot(x, radius=1, nlabels=0, col="lightblue") cbarplot(x, radius=1, col="lightblue", border="skyblue4")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.