Description Usage Arguments Value Examples
This function is a tool to visualize the information in the NOAA base file dataset. This function plots a time line of earthquakes ranging from xmin to xmaxdates with a point for each earthquake.
1 2 3 |
filtered |
dataframe for any country and date. |
This function returns layer of plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
filename<-system.file("extdata","data.gz",package="NOAAA")
readr::read_delim(filename, delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "USA" & lubridate::year(DATE) >= 2000) %>%
ggplot() +
geom_timeline(aes(x=DATE,size=EQ_PRIMARY,color=DEATHS),alpha=0.5)
readr::read_delim(filename, delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter((COUNTRY=="USA" | COUNTRY=="CHINA") & lubridate::year(DATE) >= 2000) %>%
ggplot() +
geom_timeline(aes(x=DATE,y=COUNTRY,size=EQ_PRIMARY,color=DEATHS),alpha=0.5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.