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.
You can install RCapstone from github with:
# install.packages("devtools") devtools::install_github("arthurgailes/RCapstone")
devtools::install_github("arthurgailes/RCapstone") NOAA <- RCapstone::NOAA
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()
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()
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()
Generates a Map of earthquakes in Mexico after 2000. The radius of the circles corresponds to the magnitude of the earthquakes.
RCapstone::eq_map()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.