README.md

msdr

Travis build
status

library(msdr)

NOAA Earthquakes Capstone

This Package is the final project for mastering software development in R specialization on Coursera and the major of this package is to make a package that cleans up and visualizes the NOAA earthquakes data .

The Full Process

Reading and cleaning the data

NOAA <- read.delim("signif.txt")
NOAA %>%
eq_data_clean()
NOAA %>%
eq_location_clean()

Data Visualization

1.this section is for creating a new geoms for ggplot2 , there are two geoms

noaa %>%
    eq_clean_data()%>%
    filter(YEAR >= 2000, COUNTRY == "USA") %>%
    ggplot(aes(x = DATE, size = as.numeric(EQ_PRIMARY), color = as.numeric(TOTAL_DEATHS)))+
    geom_timeline()
noaa %>%
    eq_clean_data() %>%
    eq_location_clean() %>%
    filter(YEAR >= 2000, COUNTRY == "USA") %>%
    ggplot(aes(x = DATE, size = as.numeric(EQ_PRIMARY),color = as.numeric(TOTAL_DEATHS), label = LOCATION)) +
    geom_timeline() +
    geom_timeline_label()

2.there are also two leaflet based methods

noaa %>%
    eq_clean_data() %>%
    dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
    eq_map(annot_col = "DATE")
noaa %>%
    eq_clean_data() %>%
    dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
    dplyr::mutate(popup_text = eq_create_label(.)) %>%
    eq_map(annot_col = "popup_text")


MagdyLaban/Mastering_Software_Development_in_R_Capstone_Coursera documentation built on Oct. 30, 2019, 9:08 p.m.