This 'R' Package contains the analytically tool set to derive major seasonal components as described in Lisovski et al. 2017^[Lisovski, Ramenofsky & Wingfield 2014 Defining the degree of seasonality and its significance for future research. Integrative and Comperative Biology.]. In particular, this package has two functions:

In the following paragraphs I aim to provide a short description in both functions based on a dataset of minimum and maximum temperature recordings from a weather station within the Yellowstone National Park.

The dataset

Summary of daily minimum and maximum temperature recordings from the land based NOAA^[ https://www.ncdc.noaa.gov/data-access/land-based-station-data] weather station called LAKE YELLOWSTONE was downloaded and included into this package as an example dataset.

library(FourSeasons)
  data("tempYNP")

tempYNP[1:5, c("Date", "Tmax", "Tmin")]

The dataset includes temperature recordings from the following period:

range(tempYNP$Date)

defineSeasons

The first function - defineSeasons - helps to define the periodicity within seasonal dataset (e.g. annual, bi-annual) that is later used to split periods, the e.g. annual cycle, and investigate them in isolation and in comparison to the other periods. In addition, the function uses tools to decompose the dataset into a seasonal, a trend and a remaining component that can be plotted and may be used for further investigations.

The functions requires definition of the following arguments:

Running the function usign Tmax of the Yellowstone dataset.

sTab <- defineSeasons(tempYNP$Date, tempYNP$Tmin, frequency = "daily")

The upper panel shows the raw data with grey points indicating interpolated values (nessesary for further analysis with AmpPred). The second panel shows the seasonal component of the dataset, wheareas the third indicades the trend component over time. The lower panel shows again the raw data (grey) and a fitted cosine function that is then used to split the time-series into consecutive seasonal periods.

The output provides a data frame with the following variables:

head(sTab)

AmpPred

The AmpPred function uses the data frame complied by the defineSeason function and generates future predictions based on a subset of the dataset. Those predictions are then used to estimate the goodness of the predictions by calculating the R^2 between the predictions and the raw data. Furthermore, the function calcualtes the amplitude of the within seasonal dynamic.

The function requires the definition of the following arguments:

seas <- AmpPred(sTab, info.periods = 4, forecast.periods = 1)

The output provies a list with a summary data frame as well as the entire forcasting data (2nd data frame).

seas$summary[1:8,] ## First 8 rows of the summary output


slisovski/FourSeasons documentation built on July 30, 2019, 11:08 p.m.