vi.lilac.chaser {animation} | R Documentation |
Stare at the center cross for a few (say 30) seconds to experience the phenomena of the illusion.
vi.lilac.chaser(np = 16, col = "magenta", bg = "gray", cex.p = 7, cex.c = 5, control = ani.control(interval = 0.05, nmax = 30), ...)
np |
number of points |
col |
color of points |
bg |
background color of the plot |
cex.p |
magnification of points |
cex.c |
magnification of the center cross |
control |
control parameters for the animation; see ani.control |
... |
other arguments passed to ani.control |
Just try it out.
None.
In fact, points in the original version of `Lilac Chaser' are blurred, which is not implemented in this function. If you have any idea, please contact me.
Yihui Xie
http://en.wikipedia.org/wiki/Lilac_chaser
op = par(pty = "s") vi.lilac.chaser(nmax = 20) ## Not run: # HTML animation page; nmax = 1 is enough! ani.start() par(mar = rep(1, 4)) vi.lilac.chaser(np = 12, saveANI = TRUE, nmax = 1) ani.stop() ## End(Not run) par(op)