« NewTwitter design based on a Golden Spiral | Main | Fibonacci 1-liners »

September 30, 2010


Feed You can follow this conversation by subscribing to the comment feed for this post.

however, running the code you put here does not generate the beautiful gif like this on my PC, rather a quite ugly one. Did you copy this Mandelbrot plot from wiki or you actually create it with the R code you paste here?

If you like to create fractals in R, maybe you'll find this post useful :-) http://www.marcoscan.com/2009/12/frattali-con-r.html

running the code on wikipedia doesnot produce the graph on wikipedia-i tried it too- there was a thread on this on r-help.

Peter Dalgaard suggested this as a solution-
image(X[,,20],col=jet.colors(100)) instead of CA tools
but the.gif is still bad.

read the nabble thread here http://r.789695.n4.nabble.com/why-I-could-not-reproduce-the-Mandelbrot-plot-demonstrated-on-R-wiki-td2591429.html

Worked fine for me using R 2.11.1 on a Mac, so maybe the caTools is platform-specific.

Incidentally, I re-ran the code to double the resolution of the GIF. Took less than 10 seconds to produce all 20 iterations and write the animated GIF. You can download the large version here (warning, it's about 6Mb).

The comments to this entry are closed.

Search Revolutions Blog

Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
Get this blog via email with Blogtrottr