eqTheme: Create a theme for earthquake timeline plots.

Description Usage Value Examples

Description

This function creates a ggplot theme for earthquake timeline plots. It is intended to be used with geom_timeline and geom_timeline_label.

Usage

1

Value

This function changes the theme of a ggplot.

Examples

1
2
3
4
5
6
7
eq_data <- eq_clean_data("NOAA_earthquakes.txt")
eq_data <- subset(eq_data, Country == "Mexico" & YEAR >= 2000)

ggplot2::ggplot(eq_data) +
  geom_timeline_label(ggplot2::aes(x=DATE, y=Country, fill=TOTAL_DEATHS,
                          size=EQ_PRIMARY, label=LocalLocation)) + 
  eqTheme()

lmitchell4/earthquake documentation built on May 29, 2019, 3:42 a.m.