I translated to R the JavaScipt code for the Doyle spiral written by
Robin Houston and kindly provided in
this gist.

library(rootSolve) # for the function multiroot
library(plotrix) # for …

Continue reading: The Doyle spiral with …