knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-", echo = TRUE )
The Coursera/Johns Hopkins Mastering Software Development in R Capstone Project examines earthquake data from 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
This function loads and formats the earthquake data used for the graphs
data <- RCapstone::eq_clean_data(RCapstone::NOAA)
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(RCapstone::NOAA)
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(RCapstone::NOAA)
Generates a Map of earthquakes in Mexico after 2000. The radius of the circles corresponds to the magnitude of the earthquakes.
RCapstone::eq_map(data = RCapstone::NOAA) #the interactive version cannot be displayed on Github
knitr::include_graphics("README-mexico_map.PNG")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.