earthquakes {HDiR} | R Documentation |
Earthquakes on Earth between October 2004 and April 2020
Description
Geographical coordinates (latitude and longitude) of earthquakes of magnitude greater than or equal to 2.5 degrees.
Usage
data("earthquakes")
Format
A data frame with 272 observations on the following 2 variables:
Latitude
A numeric vector containing the latitude coordinates.
Longitude
A numeric vector containing the longitude coordinates.
Details
To map this dataset on the unit sphere, function euclid
in package Directional
can be used.
Source
European-Mediterranean Seismological Centre, https://www.emsc-csem.org.
Examples
if (requireNamespace("ggplot2", quietly = TRUE)) {
library(ggplot2)
}
if (requireNamespace("maps", quietly = TRUE)) {
library(maps)
}
if (requireNamespace("mapproj", quietly = TRUE)) {
library(mapproj)
}
data(earthquakes)
world <- map_data("world")
g.earthquakes <- ggplot() +
geom_map(data = world, map = world,
mapping = aes(map_id = region),
color = "grey90", fill = "grey80") +
geom_point(data = earthquakes,
mapping = aes(x = Longitude, y = Latitude),
color = "red",alpha=.2,size=.75,stroke=0) +
scale_y_continuous(breaks = NULL, limits = c(-90, 90)) +
scale_x_continuous(breaks = NULL, limits = c(-180, 180)) +
coord_map("mercator")
g.earthquakes
[Package HDiR version 1.1.3 Index]