I want to draw a rose diagram of some circular data. I have been using the circular
package and within this package it allows you to draw a simple rose diagram using the function: rose.diag
. While this draws the diagram I want to be able to improve the plots but I can't find away to add to the plot or adjust it slightly. I have looked at drawing it in ggplot2
but this doesn't seem clear to me and I am struggling to find another package in R which draws rose diagrams like this.
I post a sample of data and my current code below along with my queries:
Angle
0.65454759
0.01355458
0.5052027
0.2264302
-0.350552
-0.428481
0.1231778
0.258787
0.06723504
0.06906181
2.54608572
-1.6591672
3.00437314
-0.0503291
-0.828578
-1.9616418
-0.6468774
0.01438686
0.1162713
0.9938797
0.1861583
0.1547071
0.2577813
0.5110576
0.08714113
These data are radian turning angles. Using the circular
package I make this data a vector of class circular
:
x <- circular(Angle)
Then draw a rose diagram using the following code where it plots the diagram in degrees and not radians:
rose.diag(x, pch = 16, cex = 1, axes = TRUE, shrink = 1, col=3, prop = 2,
bins=36, upper=TRUE, ticks=TRUE, units="degrees")
There are 3 things I would like to add to this plot:
- Change the plot orientation so that 0 is at the top and not on the right.
- Add concentric circles to the plot to help with visual interpretation of the size and weight of each of the "bins".
- Add a line to identify the mean angle (with sd error bars if possible)