I am trying to plot a periodogram for the following data. However, I am not sure how can i plot a periodogram object ?
Code:
#= DataFrame
10×10 DataFrame
Row │ Date Open High Low Close Volume AdjustedOpen AdjustedHigh AdjustedLow AdjustedClose
│ Date Float64 Float64 Float64 Float64 Float64 Float64 Float64 Float64 Float64
─────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ 2020-08-21 41.3 41.34 40.71 41.01 2.55177e7 38.5015 38.5388 37.9515 38.2312
2 │ 2020-08-24 41.28 42.5078 41.09 42.22 1.82089e7 38.4829 39.6275 38.3058 39.3592
3 │ 2020-08-25 41.66 42.065 40.7 40.88 3.12856e7 38.8371 39.2147 37.9422 38.11
4 │ 2020-08-26 40.64 40.835 40.0 40.01 2.6795e7 37.8862 38.068 37.2896 37.2989
5 │ 2020-08-27 40.0 40.3 39.305 39.74 3.20343e7 37.2896 37.5693 36.6417 37.0472
6 │ 2020-08-28 39.84 40.92 39.76 40.69 3.34771e7 37.1405 38.1473 37.0659 37.9329
7 │ 2020-08-31 40.64 40.72 39.895 39.94 2.52596e7 37.8863 37.9608 37.1917 37.2337
8 │ 2020-09-01 39.75 39.75 39.045 39.43 2.24782e7 37.0565 37.0565 36.3993 36.7582
9 │ 2020-09-02 39.23 39.715 38.95 39.19 2.64134e7 36.5718 37.0239 36.3108 36.5345
10 │ 2020-09-03 39.2 40.03 38.88 39.11 2.88172e7 36.5438 37.3176 36.2455 36.4599
=#
using DSP, DataFrames, Plots
data = df[:, :AdjustedClose]
a = periodogram(data)
Thanks look forward to the suggestions.