Press "Enter" to skip to content

Creating a Christmas Tree with R

Michael Mayer has a festive post:

This one picks up a topic that was intensively discussed a couple of years ago on Wolfram’s page: Namely that the damped sine wave

f(t) = t sin(t)

can be used to draw a Christmas tree. Throw in some 3D animation using the R package rgl and the tree begins to become virtual reality…

Click through to see how you can create this in R using 10 lines of code.