### Name: spectrum ### Title: Spectral Density Estimation ### Aliases: spectrum spec ### Keywords: ts ### ** Examples require(graphics) ## Examples from Venables & Ripley ## spec.pgram par(mfrow=c(2,2)) spectrum(lh) spectrum(lh, spans=3) spectrum(lh, spans=c(3,3)) spectrum(lh, spans=c(3,5)) spectrum(ldeaths) spectrum(ldeaths, spans=c(3,3)) spectrum(ldeaths, spans=c(3,5)) spectrum(ldeaths, spans=c(5,7)) spectrum(ldeaths, spans=c(5,7), log="dB", ci=0.8) # for multivariate examples see the help for spec.pgram ## spec.ar spectrum(lh, method="ar") spectrum(ldeaths, method="ar")