Skip to contents

Convenience wrapper to visualize spectra returned by spectral_peak.

Usage

plot_spectrum(freqs, spectrum, peak = NULL)

Arguments

freqs

frequency axis.

spectrum

power values.

peak

optional peak frequency to highlight.

Value

ggplot object.