library(eqv) library(dplyr) library(ggplot2) library(readr) filename <- system.file("extdata/signif.txt", package = "eqv") data <- readr::read_delim(filename, delim = "\t") data %>% eq_clean_data() %>% eq_location_clean %>% dplyr::filter(COUNTRY %in% c("INDIA", "ITALY") & YEAR > 1990) %>% ggplot2::ggplot(ggplot2::aes(x = DATE, y = COUNTRY,color = as.numeric(TOTAL_DEATHS),size = as.numeric(EQ_PRIMARY))) + geom_timeline() + geom_timeline_label(ggplot2::aes(label = LOCATION_NAME), n_max = 5) + theme_timeline()
data %>% eq_clean_data() %>% dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>% dplyr::mutate(popup_text = eq_create_label(.)) %>% eq_map(annot_col = "popup_text")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.