theme_eq: Earthquake Timeline Theme

Description Usage Arguments Examples

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

JazminCevallos/Package-Evaluation documentation built on May 27, 2019, 12:16 p.m.