gg_raw_pgram function

Display raw periodogram

Display raw periodogram

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

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

Returns

A ggplot object representing the raw periodogram

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

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