plot_spectrum: Plot a spectrum of a seismic signal

View source: R/plot_spectrum.R

plot_spectrumR Documentation

Plot a spectrum of a seismic signal

Description

This function plots a line graph of the spectrum of a seismic signal.

Usage

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.

Value

A line plot.

Author(s)

Michael Dietze

See Also

signal_spectrum

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)


coffeemuggler/eseis documentation built on Aug. 19, 2023, 9:57 p.m.