knitr::opts_chunk$set(echo = TRUE)

TODO:

Introduction

This is an analysis of the laWY2015-2019 data using both conventional Spectral and Wavelet analyses. The data is analyzed in several different ways – primarily by analyzing different intervals.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Time Series

The laWY data measures the height of the Carmel River Lagoon over the period 2014 to 2019.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

## Loading required package: plotly
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:graphics':
## 
##     layout
## The following object is masked from 'package:Hmisc':
## 
##     subplot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## Loading required package: shiny
## Loading required package: biwavelet
## biwavelet 0.20.19 loaded.
## 
## Attaching package: 'biwavelet'
## The following object is masked from 'package:ggplot2':
## 
##     arrow
## Warning: Ignoring 8 observations
## A line object has been specified, but lines is not in the mode
## Adding lines to the mode...

Raw Spectrum

We break the time series into “bundles” which are sub-time series of bundle many days. This is an attempt to create reasonably stable spectra as there are only 96 observations per day (one every 15 minutes). So, a bundle size of 2 is a time series of 2 days or 2*96= 192 observations

Note that this is chopping the raw time series into disjoint segments. Soon to come will be a sliding window analyses: increase the series starting point one obeservation, computing the spectrum and then moving to the next, consecutive, starting point. The analyses will still be over a bundle’s number of days.

There are plenty of experiments: change window sizes and bundle sizes!

## A line object has been specified, but lines is not in the mode
## Adding lines to the mode...

Window = 5

Heat Map

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Wavelets

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

## Warning in contour.default(x$t, yvals, t(x$signif), level =
## tol, col = col.sig, : contour(): circular/long seglist -- set
## options("max.contour.segments") > 25000?

## Warning in contour.default(x$t, yvals, t(x$signif), level =
## tol, col = col.sig, : contour(): circular/long seglist -- set
## options("max.contour.segments") > 25000?

LaTeX works if we need it:

\[ f(k) = { n \choose k} p^k (1-p)^{n-k} \]