Description Usage Arguments Details Author(s) References See Also Examples
Function cdotplot
can be used to plot 2dimensional
stacked dot plot for circular data.
1 2 3 4 
x 
a circular data object that is fully defined by the user. 
nbins 
the number of bins of the circular histogram. Internally, it is rounded to a multiple of 4. 
radius 
the radius of the reference circle. If 
unit 
the number of observations represented by each dot. If

area.prop 
logical; if 
total.area 
a positive number specifying the total area under the
density curve. If 
m 
the number of points within each bin to plot the circular dot plot. The larger the number is, the smoother the plot looks. 
col 
the color to fill the bars. 
border 
the color of the border around the bars. 
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) 
x.legend 
x coordinate to plot the legend. 
y.legend 
y coordinate to plot the legend. 
If the number of observations is relatively small,
the usual circular stacked dot plot can be used with unit = 1
.
If the dataset is large, the dots may become too dense to visualize or count.
Setting unit
to be any positive integer to allow each dot to represent more than one observation.
If the number of observations in one bin is not a multiple of the specified unit,
a partial dot can be used to represent the remainder at the top of the bin.
Danli Xu <dxu452@aucklanduni.ac.nz>, Yong Wang <yongwang@auckland.ac.nz>
Xu, D. and Wang, Y. (2019) Areaproportional Visualization for Circular Data (submitted).
1 2 3 4 5 6 7 8 9 10  # 30 observations from two von Mises distributions
library(circular)
x = c(rvonmises(10, circular(pi/4), 5), rvonmises(20, circular(pi), 20))
cdotplot(x) # areaproportional dot plot
cdotplot(x, area = FALSE) # heightproportional dot plot
# 900 observations from two von Mises distributions
y = c(rvonmises(300, circular(pi/4), 5), rvonmises(600, circular(pi), 20))
cdotplot(y, nbins=76, unit = 10) # areaproportional (partial) dot plot
cdotplot(y, nbins=76, unit = 10, area = FALSE) # heightproportional

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.