Learn R Programming

garma (version 0.9.24)

gg_raw_pgram: 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)

Value

A ggplot object representing the raw periodogram

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.

Examples

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

Run the code above in your browser using DataLab