Plot PSD (Welch periodogram):
= plot_psd(eeg, ch=1)
p plot_save(p, file_name="images/psd.png")
Plot PSD (FFT):
= plot_psd(eeg, ch=1, method=:fft)
p plot_save(p, file_name="images/psd_st.png")
Plot PSD (short time Fourier transform):
= plot_psd(eeg, ch=1, method=:stft)
p plot_save(p, file_name="images/psd_stft.png")
Plot PSD (multi-taper):
= plot_psd(eeg, ch=1, method=:mt)
p plot_save(p, file_name="images/psd_mt.png")
Plot PSD (Morlet-wavelet):
= plot_psd(eeg, ch=1, method=:mw)
p plot_save(p, file_name="images/psd_mw.png")
Plot PSD, scale x-axis:
= plot_psd(eeg, ch=1, ax=:loglin)
p plot_save(p, file_name="images/psd_loglin.png")
Plot multi-channel PSD:
= plot_psd(eeg, ch=1:4)
p plot_save(p, file_name="images/psd_mch1.png")
Butterfly plot of multi-channel PSD:
= plot_psd(eeg, ch=1:4, type=:butterfly)
p plot_save(p, file_name="images/psd_mch2.png")
Plot multi-channel PSD, mean ± 95CI:
= plot_psd(eeg, ch=1:4, type=:mean)
p plot_save(p, file_name="images/psd_avg.png")
Plot PSD 3d waterfall:
= plot_psd(eeg, ch=1:4, method=:mw, type=:w3d)
p plot_save(p, file_name="images/eeg_psdw3d.png")
Plot PSD 3d surface:
= plot_psd(eeg, ch=1:4, type=:s3d)
p plot_save(p, file_name="images/eeg_psds3d.png")
Plot topomap of PSDs:
= plot_psd(eeg, ch=1:19, type=:topo)
p plot_save(p, file_name="images/eeg_psd_topo.png")
Plot phase spectral density:
= plot_phsd(eeg, ch=1:19)
p plot_save(p, file_name="images/eeg_phsd.png")
(!) For plot_phsd()
, the same plot types are available
as for plot_psd()
.