Description Usage Arguments Examples
Makes your earthquakr timeline plots look pretty.
1 | theme_eq(base_size = 11, base_family = "sans")
|
base_size |
Default |
base_family |
Default |
1 2 3 4 5 6 7 8 9 10 11 12 | library(dplyr); library(ggplot2)
quakes <- eq_load_clean_data()
quakes %>% dplyr::filter(COUNTRY %in% c('USA', 'UK')) %>%
dplyr::filter(DATE > '2000-01-01') %>%
ggplot2::ggplot() +
geom_timeline(aes(x = DATE, y = COUNTRY, color = TOTAL_DEATHS,
size = EQ_PRIMARY)) +
ggplot2::scale_size_continuous(name = 'Richter scale value') +
ggplot2::scale_color_continuous(name = '# of Deaths') +
theme_eq()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.