Learn R Programming

itsmr (version 1.9)

periodogram: Plot a periodogram

Description

Plot a periodogram

Usage

periodogram(x, q = 0, opt = 2)

Value

The periodogram vector divided by 2pi is returned invisibly.

Arguments

x

Time series data

q

MA filter order

opt

Plot option (0 silent, 1 periodogram only, 2 periodogram and filter)

Details

The filter q can be a vector in which case the overall filter is the composition of MA filters of the designated orders.

See Also

plots

Examples

Run this code
periodogram(Sunspots,c(1,1,1,1))

Run the code above in your browser using DataLab