Since you said you’re plotting it you can just use a sin() equation:
Value = amplitude*sin(frequency*t+phase)
As a simple example say you want to plot a sine wave you can do that with a loop:
Start of layout
Repeat 640 times
— create sprite at (loopindex, 240+100*sin(10*loopindex))
Or if you wanted to plot a portion of it each frame you could do:
variable x =0
variable prevtime=0
Repeat (time-prevtime)*60 times
— add 1/60 to prevtime
— add 0.1 to x
— create sprite at (x, 240+sin(10*x))