theme_timeline: Theme for the earthquake data

Description Usage Value Examples

Description

A few tweaks to turn off the background and grids.

Usage

1

Value

a theme object to be attached to ggplot command

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: ggplot(data = selected) +
aes(x=DATE, y=COUNTRY,
   colour = TOTAL_DEATHS,
   size = EQ_PRIMARY) +
   geom_timeline(xmin=xmin, xmax=xmax) +
   theme_timeline() +
   scale_size_continuous(name = "Richter scale value") + #change legend name
   scale_colour_continuous(name = "# Deaths") +
   scale_x_date(limits = c(xmin-months(6), xmax+months(6))) #extend the axis
## End(Not run)

wingtham/NOAA documentation built on May 24, 2019, 3:51 p.m.