powered by
Plot a periodogram
periodogram(x, q = 0, opt = 2)
The periodogram vector divided by 2pi is returned invisibly.
Time series data
MA filter order
Plot option (0 silent, 1 periodogram only, 2 periodogram and filter)
The filter q can be a vector in which case the overall filter is the composition of MA filters of the designated orders.
q
plots
periodogram(Sunspots,c(1,1,1,1))
Run the code above in your browser using DataLab