sinusoid {season} | R Documentation |
Plot a Sinusoid
Description
Plots a sinusoid over 0 to 2.
Usage
sinusoid(amplitude, frequency, phase, ...)
Arguments
amplitude |
the amplitude of the sinsuoid (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. |
Details
Sinusoidal curves are useful for modelling seasonal data. A sinusoid is
plotted using the equation: , where
is the amplitude,
is the frequency,
is time and
is the phase.
Author(s)
Adrian Barnett a.barnett@qut.edu.au
References
Barnett, A.G., Dobson, A.J. (2010) Analysing Seasonal Health Data. Springer.
Examples
sinusoid(amplitude=1, frequency=1, phase=1)
[Package season version 0.3.15 Index]