yhs | R Documentation |
This is the dataset containing the earthquake catalog.
Classes 'tbl_df'
, 'tbl'
and 'data.frame'
:
196993 obs. of 22 variables in the HASH format:
179255 earthquakes from the original catalog, and 17738 from the supplemental catalogs.
This dataset consists of the original catalog and a supplement. These can be
identified with the src
field: src=='orig'
for the original
and src=='supp'
for the supplemental.
SCEC: https://scedc.caltech.edu/data/alt-2011-yang-hauksson-shearer.html
HASH:
(1) Hardebeck, Jeanne L. and Peter M. Shearer, A new method for determining first-motion focal mechanisms, Bull. Seismol. Soc. Am., 92(6), 2002. https://doi.org/10.1785/0120010200
(2) Hardebeck, Jeanne L. and Peter M. Shearer, Using S/P Amplitude Ratios to Constrain the Focal Mechanisms of Small Earthquakes, Bull. Seismol. Soc. Am., 93(6), 2003. https://doi.org/10.1785/0120020236
yhs.catalog
require(dplyr) print(yhs) # source and quality distribution print(tbl <- with(yhs, table(Source, Quality))) plot(tbl) print(tbl2 <- with(yhs, table(Year, Quality))) plot(tbl2) # plot all locations in space plot(Lat.deg ~ Lon.deg, yhs, pch=".") # highlight the supplemental catalog in red plot(Lat.deg ~ Lon.deg, yhs, pch=".", col=as.numeric(factor(Source)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.