Learn R Programming

eseis (version 0.7.3)

plot_spectrum: 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, ...)

Value

A line plot.

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.

Author

Michael Dietze

See Also

signal_spectrum

Examples

Run this code

## 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)

Run the code above in your browser using DataLab