The Butterfly Curve

Have you ever thought drawing your own butterfly? I came across the butterfly curve, which was discovered by Temple Fay. The butterfly curve is produced by a parametric equation where: x = sin(t) * (e^cos(t)-2cos(λt)-sin(t/12)^5) and y = cos(t) * (e^cos(t)-2cos(λt)-sin(t/12)^5). Where t stands for time and λ for a user input variable.

Linear Relationship

library(ggplot2)

source("https://raw.githubusercontent.com/danielmarcelino/SciencesPo/master/R/butterfly.R")

p4 = butterfly(100, 1000, title="100 x 1000")

Date of Analysis: Wed Oct 07 2015
Computation time: 0.01444697
—————————————————
comments powered by Disqus