Plotting the function using coord_polar in ggplot2 does not work as intended. Unexpectedly, the x axis keeps extending instead of circling back once a full circle is reached. Turns out coord_polar might not really be intended to plot elements in polar vector format.\r
| 46.7443082659106 |\r
\r
Plotting the function using coord_polar in ggplot2 does not work as intended. Unexpectedly, the x axis keeps extending instead of circling back once a full circle is reached. Turns out coord_polar might not really be intended to plot elements in polar vector format.\r
-#+BEGIN_SRC R :session R :results output graphics :file ../pics/golden_spiral-coord_polar-fail.png :exports both\r
+#+BEGIN_SRC R :session R :results output file graphics :file ../assets/golden_spiral-coord_polar-fail.png :exports both\r
ggplot(data.frame(x = seq_theta, y = dist_from_origin), aes(x,y)) +\r
geom_point() +\r
coord_polar(theta="x")\r
#+END_SRC\r
\r
#+RESULTS:\r
ggplot(data.frame(x = seq_theta, y = dist_from_origin), aes(x,y)) +\r