The goal of the TheCapstoneProject package is to build a software package that can be used to work with the NOAA Significant Earthquakes dataset. This dataset has a substantial amount of information embedded in it that may not be immediately accessible to users without knowledge of the intimate details of the dataset or of R. This package provides the tools for processing and visualizing the data so that they may extract some use out of the information embedded within.
You can install the released version of TheCapstoneProject from GitHub with:
devtools::install_github("ekawabata/TheCapstoneProject")
#> checking for file 'C:\Users\fa20506\AppData\Local\Temp\RtmpIl0i9i\remotes4c6c47ec2490\ekawabata-TheCapstoneProject-633ffc5/DESCRIPTION' ... checking for file 'C:\Users\fa20506\AppData\Local\Temp\RtmpIl0i9i\remotes4c6c47ec2490\ekawabata-TheCapstoneProject-633ffc5/DESCRIPTION' ... v checking for file 'C:\Users\fa20506\AppData\Local\Temp\RtmpIl0i9i\remotes4c6c47ec2490\ekawabata-TheCapstoneProject-633ffc5/DESCRIPTION'
#> - preparing 'TheCapstoneProject':
#> checking DESCRIPTION meta-information ... checking DESCRIPTION meta-information ... v checking DESCRIPTION meta-information
#> - checking for LF line-endings in source and make files and shell scripts
#> - checking for empty or unneeded directories
#> - building 'TheCapstoneProject_0.1.0.tar.gz'
#>
#>
library(TheCapstoneProject)
The eq_clean_data function takes a data from the NOAA website and returns a clean data frame.
The eq_location_clean() function adds a LOCATION_NAME column to the data frame, which will be needed for annotating visualisations for the geom_timeline_label() and eq_create_label() functions.
The geom_timeline() function takes a cleaned data set as an argument and plots a timeline of earthquakes for a specified date range.
The geom_timeline_label() function also plots a timeline of earthquakes and adds annotations.
The eq_map() function takes a cleaned data set as an argument and displays earthquakes it in an interactive map.
The eq_create_label() function takes a cleaned data set as an argument and creates an HTML label that can be used as annotation text in an interactive map.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.