GeomTimelineLabel: Geom to add labels to points in Geom_Timeline

Description Usage Format Examples

Description

geom_timeline_label is meant to work in conjunction with ggplot and geom_timeline_label to provide a framework to label important earthquakes.

Usage

1

Format

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

Examples

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

#This operates as any other geom. A theme with a blank background
#  is recommended to make it look more timeline like.
#  Be sure to repeat \code{x, xmindate, and xmaxdate}
mydate=as.Date("2014-1-1","%Y-%m-%d")

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


## End(Not run)

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