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
 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 Jan. 22, 2018, 12:13 a.m.