GeomTimeline: Geom to plot EQ timelines.

Description Usage Format Examples

Description

geom_timeline is meant to work in conjunction with ggplot to provide visualization of earthquake data over time. The optional arguments for alpha and color are defaulted to provide a visual cue as to the severity (Richter scale) and mortality caused by each event.

Usage

1

Format

An object of class GeomTimeline (inherits from Geom, ggproto) of length 7.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

#This operates as any other geom. A theme with a blank background
#  is recommended to make it look more timeline like.
mydate=as.Date("2014-1-1","%Y-%m-%d")

ggplot(data)+
geom_timeline(xmindate=mydate,aes(x=DATE,y=COUNTRY,alpha=EQ_PRIMARY))+
theme_classic()


## End(Not run)

JJNewkirk/NOAAEQ documentation built on May 27, 2019, 1:12 p.m.