powered by
Plot the periodogram of a daily time series
plot_spectrum(x, xlog = FALSE, size = 1)
xts or ts, daily timeseries
should x-axis be log transformed
linesize
Plot uses ggplot2 and can be changed accordingly. The spectrum is build around the spec.pgram() function
# NOT RUN { x <- daily_sim(3)$original plot_spectrum(x) # }
Run the code above in your browser using DataLab