powered by
Plots a cumulative periodogram.
cpgram(ts, taper = 0.1, main = paste("Series: ", deparse(substitute(ts))), ci.col = "blue")
a univariate time series
proportion tapered in forming the periodogram
main title
colour for confidence band.
None.
Plots the cumulative periodogram in a square plot.
require(graphics) par(pty = "s", mfrow = c(1,2)) cpgram(lh) lh.ar <- ar(lh, order.max = 9) cpgram(lh.ar$resid, main = "AR(3) fit to lh") cpgram(ldeaths)
Run the code above in your browser using DataLab