tsspec: Time Series Frequency Spectrum

View source: R/identification.R

tsspecR Documentation

Time Series Frequency Spectrum

Description

tsspec generates a ggplot showing the frequency spectrum of a time series, and a table with the value of each frequency.

Usage

tsspec(y)

Arguments

y

a vector or an array with the values of the time series.

Value

A list containing the following components:

table

A data frame with the values of the spectrum for each frequency represented.

plot

A ggplot object of the frequency spectrum.

See Also

periodogram

Examples

# Easy example with AirPassengers time series
tsspec(as.vector(AirPassengers))

danipequelangos/CBJTSA documentation built on Oct. 16, 2022, 7:19 p.m.