gg_raw_pgram | R Documentation |
Display the raw periodogram for a time series, and not on a log scale.
gg_raw_pgram(x, k = 1)
x |
(num) This should be a numeric vector representing the process to estimate. |
k |
(int) The number of Gegenbauer factors |
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.
A ggplot object representing the raw periodogram
data(AirPassengers)
ap <- as.numeric(diff(AirPassengers, 12))
sp <- ggbr_semipara(ap)
print(sp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.