This function plots a line graph of the spectrum of a seismic signal.
plot_spectrum(data, unit ="dB", n =10000,...)
Arguments
data: eseis object or data frame with two elements, frequency vector and spectrum vector.
unit: Character value. One out of "linear", "log", "dB". Default is "dB".
n: Numeric value, number of values to which the dataset is reduced. Default is 10000.
...: Further arguments passed to the plot function.
Returns
A line plot.
Examples
## load example data setdata(rockfall)## calculate spectrumspectrum_rockfall <- signal_spectrum(data = rockfall_eseis)## plot data set with lower resolutionplot_spectrum(data = spectrum_rockfall)