Learn R Programming

geostats (version 1.6)

gutenberg: create a Gutenberg-Richter plot

Description

Calculate a semi-log plot with earthquake magnitude on the horizontal axis,and the cumulative number of earthquakes exceeding any given magnitude on the vertical axis.

Usage

gutenberg(m, n = 10, ...)

Value

the output of lm with earthquake magnitude as the independent variable (mag) and the logarithm (base 10) of the frequency as the dependent variable (lfreq).

Arguments

m

a vector of earthquake magnitudes

n

the number of magnitudes to evaluate

...

optional arguments to the generic points function.

Examples

Run this code
data(declustered,package='geostats')
gutenberg(declustered$mag)

Run the code above in your browser using DataLab