sinusoid | R Documentation |
Plots a sinusoid over 0 to 2\pi
.
sinusoid(amplitude, frequency, phase, ...)
amplitude |
the amplitude of the sinusoid (its maximum value). |
frequency |
the frequency of the sinusoid in 0 to 2 |
phase |
the phase of the sinusoid (location of the peak). |
... |
additional arguments passed to the plot. |
Sinusoidal curves are useful for modelling seasonal data. A sinusoid is
plotted using the equation: A\cos(ft-P), t=0,\ldots,2 \pi
, where
A
is the amplitude, f
is the frequency, t
is time and
P
is the phase.
Adrian Barnett a.barnett@qut.edu.au
Barnett, A.G., Dobson, A.J. (2010) Analysing Seasonal Health Data. Springer.
sinusoid(amplitude=1, frequency=1, phase=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.