I created a rose diagram based on the example here, but I need the y axis to show each bin as a percentage of the total. The data I am actually using is a vector of the different orientations of a group of animals. My example code currently would be something like:
Degrees <- runif(100, 0, 360)
# 45 degree bins
rose <- ggplot(mapping = aes(x = Degrees)) +
stat_bin(breaks = (0:8 - 0.5)/8 * 360, color = "black", fill = "light grey") +
scale_x_continuous(
breaks = 0:7/8*360) +
coord_polar(start=-pi/8)
rose
Thank you for any help you can give!
You could simply add: