What I'm trying to do is pretty simple in theory:
dataset <- data.frame(angle = c(10.1,-10.1,20.5,83.2),
speed = c(20,40,10,30))
a <- ggplot(data = dataset, aes( x = angle))+
geom_histogram( stat ="bin", bins =100, aes(color = mean(speed))) +
coord_polar( start =3.14, direction = 1 ,theta = "x")+
theme_pander(lp = 'top')+
xlim(-150,150)+
scale_colour_pander()#starts at Pi
What I'm currently getting:
I'd like to apply the mean speed for each bin as the color for every bin. Any help would be appreciated.
Thank you!