Lissajous Curves

Antonio Ferreras
Sat Aug 23 21:38:46 2014

COURSERA: Developing Data Products

Objectives

  • A tool to display pretty Lissajous curves
  • Practice with shiny environment, different input gadgets
    • Especially use the timer, to achive a sense of movement
  • Get the hang of the plot function, and how tha pparence can be change tunning the different parameters
  • Have fun!

Lissajous Curve

A Lissajous Curve is a system of parametric equations:

t=c(0:200)/200.; w1<-2; w2<-7; phi<-pi/8
x<-sin(2*pi*w1*t); y<-sin(2*pi*w2*t + phi)
plot(x,y,type="o",col="blue")

plot of chunk unnamed-chunk-1

Instructions

  • Several parameters can be changed in the plot
    • Type: dots, line, both, histogram, step (try this one!)
    • Character of the dot, relative size, color
    • Type of the line, color
  • One can select the frecuencies of the two movements (both are integers to get pretty displays)
    • w1 - for the x axis
    • w2 - for the y-axis
  • The dephase (phi) is increased automatically to get a sense of movement

Click here to access the application

A look to the application

alt text