plot_spectrum function

Plot a spectrum of a seismic signal

Plot a spectrum of a seismic signal

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 set data(rockfall) ## calculate spectrum spectrum_rockfall <- signal_spectrum(data = rockfall_eseis) ## plot data set with lower resolution plot_spectrum(data = spectrum_rockfall)

See Also

signal_spectrum

Author(s)

Michael Dietze

  • Maintainer: Michael Dietze
  • License: GPL-3
  • Last published: 2025-03-25

Useful links