knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

This project displays the data cleaning, visualization, and R package programming skills learned in the Coursera/Johns Hopkins Mastering Software Development in R course.

The data examined is the U.S. National Oceanographic and Atmospheric Administation's (NOAA) dataset of significant earthquakes. For more info, visit: click here.

Installation

You can install RCapstone from github with:

# install.packages("devtools")
devtools::install_github("arthurgailes/RCapstone")
devtools::install_github("arthurgailes/RCapstone")
NOAA <- RCapstone::NOAA

Reading and cleaning data.

The functions eq_clean_data and eq_location_data format the NOAA dataset to return data on earthquake details and location, respectively. Both functions are used to produce the graphs in the data.

data <- RCapstone::eq_clean_data()
cities <- RCapstone::eq_location_clean()

Timeline of earthquakes in US and China after 2000

This graphs earthquakes in US and China after 2000; the radius of the circles charts the richter-scale magnitude of the earthquakes.

RCapstone::geom_timeline()

Labeled arthquakes in US and China after 2000

This graphs earthquakes in US and China after 2000; the radius of the circles charts the richter-scale magnitude of the earthquakes. The largest earthquakes are labeled.

RCapstone::geom_timeline_label()

Interactive Map of earthquakes in Mexico

Generates a Map of earthquakes in Mexico after 2000. The radius of the circles corresponds to the magnitude of the earthquakes.

RCapstone::eq_map()


arthurgailes/RCapstone documentation built on May 18, 2019, 8:08 p.m.