Playing around with Fractals, using R: a showcase of Rmd and github pages.
So, I’ve just learned how to use knitr
, and this small project
is just testing it out. You can check the R markdown files which
produced the GIFs at the end (or here’s the first,
the second and
the third, since you’re in a hurry).
Besides producing the images it also creates a cool report in html format.
To compile the .Rmd
file you’ll just have to type in your favorite shell (assuming you’re on GNU/Linux):
R -e "rmarkdown::render('Fractals2.Rmd')"
Using the complex map z = z^2 + c
:
z = z^4 + c
z = z^6 + c
z = sin(z)^2 + c
:z = cos(z)*sin(z)^10 + c
: