I am trying to create a rose diagram showing the average path angle and distance for each subset of cells. I want the angle around the rose diagram to be the angle of the path, and the stroke length on the diagram to be a complete offset.
Here is a set of test data for the average angle and offset per group.
testsum<-data.frame(Group=c(1,2,3),
angle=c(0.78,1.04,2.094),
displacement=c(1.5,2,1))
When I try to build this in a circular method, my chart looks very wrong.
p1<-ggplot(testsum, aes(x=angle,y=displacement))+
coord_polar(theta="x",start=0)+
geom_bar(stat="identity",aes(color=Group,fill=Group),width=.01)+
scale_x_continuous(breaks=seq(0,360,60))
He gives me this chart for output.

Depending on what the data says, it should look bigger (a picture of the intended output).

Corners seem to be placed incorrectly? Any idea what I'm doing wrong?
source
share