earthquakes | R Documentation |
US earthquakes with a magnitude of 2.5 or greater, occurring in the
first half of 2019, from January 1 to June 30, from USGS.
The data is formatted for transforming with usmap_transform()
.
Once the longitude and latitude is transformed, it can be added to
plot_usmap()
using ggplot2::ggplot()
layers.
data(earthquakes)
A data frame with 2254 rows and 3 variables.
lon
The longitude of the earthquake's location.
lat
The latitude of the earthquake's location.
mag
The magnitude of the earthquake.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.