I'm trying to show the bearings that individuals travelled away from a site and the distance travelled within 1 day, as well as the numbers of individuals travelling at different bearings.
Presently, I can make those basic plots in ggplot2:
# distance & bearing
ggplot(data=df,
aes(bear, dist)) +
geom_point() +
scale_y_log10()
# no. individuals & bearing
ggplot(data=df.postDepDT,
aes(bear)) +
geom_histogram(bins = 36)
#my data looks like the following
bear <- c(-172, -175, -160, -155, -150, -10, 23, 87, 122, 179)
dist <- c(5, 101, 326, 47, 23, 55, 6, 7, 44, 162)
df <- data.frame(bear, dist)
I would like my final plot to have two panels. The first is a circle with points at different lengths (indicating distance) radiating away from the circle in the direction of the bearing. These points would be connected to the circle along the bearing. The second is a histogram around the circle, showing numbers of individuals moving away from a circle along each bearing.
In these figures 0o (or North) would be at the top at -180o/180o (South) would be at the bottom, with -90o and 90o (west and east) on the left and right, respectively.
UPDATE:
Adding coord_polar() to the figures helps make a circular figure, however, I'm still unable to get the 0o value (for North) at the top of the figure (start=0 puts the 0o value at the bottom). Also, I'm still looking for a solution to connect the points in the first plot to the centre point.


