theme_eq: Earthquake Timeline Theme

Description Usage Arguments Examples

View source: R/theme_eq.R

Description

Makes your earthquakr timeline plots look pretty.

Usage

1
theme_eq(base_size = 11, base_family = "sans")

Arguments

base_size

Default 11, base size of text

base_family

Default sans, text family

Examples

 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()
  

DYZI/Earthquake documentation built on May 7, 2019, 6:54 p.m.