gg_raw_pgram: Display raw periodogram

View source: R/gg_raw_pgram.R

gg_raw_pgramR Documentation

Display raw periodogram

Description

Display the raw periodogram for a time series, and not on a log scale.

Usage

gg_raw_pgram(x, k = 1)

Arguments

x

(num) This should be a numeric vector representing the process to estimate.

k

(int) The number of Gegenbauer factors

Details

The standard "R" functions display periodograms on a log scale which can make it more difficult to locate high peaks in the spectrum at differing frequencies. This routine will display the peaks on a raw scale.

Value

A ggplot object representing the raw periodogram

Examples

data(AirPassengers)
ap <- as.numeric(diff(AirPassengers, 12))
sp <- ggbr_semipara(ap)
print(sp)

garma documentation built on April 4, 2025, 2:13 a.m.