index 5ff82decb7211632ad2a55085074bc4e89a75d08..62b9bc4ab12870113c9452912e409041444e89f3 100644 (file)
Binary files a/source/assets/golden_spiral-coord_polar-fail.png and b/source/assets/golden_spiral-coord_polar-fail.png differ
index 6c6d2bf244f79d8490c0dddb464f8843355b30d6..880311b159bea3cdbf1ff9a5a41f6c7d6f1b38ca 100644 (file)
Binary files a/source/assets/golden_spiral-ggplot-coord-fixed.png and b/source/assets/golden_spiral-ggplot-coord-fixed.png differ
index dd659916172ac50ac43f0e4806c70823831312ce..7cdd3cbd8903c9bcf613b2aec77cb6445d7ef407 100644 (file)
Binary files a/source/assets/golden_spiral-plotrix.png and b/source/assets/golden_spiral-plotrix.png differ
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