exp(-abs(Z)) } image(X[,,k], col=tim.colors(256)) # show final image in write.gif(X, "Mandelbrot.gif", col=tim.colors(256), delay=100)   Found on the R-help list, code here . More on the Mandelbrot set. 9. Reminder from David Gonzalez to watch what you put on facebook in case you become a famous psychologist.  Pictured is Martin Seligman.