Source code supplement for article Louca et al. - Detecting cyclicity in ecological time series

This is an example R script ("example.R") along with four example time series ("Example_data"), demonstrating the calculation of the statistical significance of periodogram peaks against the OUSS null model using the 'peacots' R package. The script was tested using R 3.1.1 on Mac OS 10.6. A more elaborate explanation of the script can be found as comments therein.

How to run the example script:
Type source("example.R") in your R console after setting your working directory to the directory containing the script. This script analyzes the four time series located in the "Example_data" directory. The script produces a plot with the time series, their periodograms and the results of the statistical significance analysis of the periodogram peaks. This script requires an installation of the 'peacots' package.

Disclaimer
This code is provided as is. Use at your own risk and discretion. The authors of this code can not be held responsible for any damage or costs resulting from the use of this code.

Stilianos Louca
October 30, 2014