Learn R Programming

openintro (version 2.4.0)

earthquakes: Earthquakes

Description

Select set of notable earthquakes from 1900 to 1999.

Usage

earthquakes

Arguments

Format

A data frame with 123 rows and 7 variables.

year

Year the earthquake took place.

month

Month the earthquake took place.

day

Day the earthquake took place

richter

Magnitude of earthquake using the Richter Scale.

area

City or geographic location of earthquakes.

region

Country or countries if the earthquake occurred on a border.

deaths

Approximate number of deaths caused by earthquake

Examples

Run this code

library(ggplot2)

ggplot(earthquakes, aes(x = richter, y = deaths)) +
  geom_point()

ggplot(earthquakes, aes(x = log(deaths))) +
  geom_histogram()

Run the code above in your browser using DataLab