Description Usage Format Examples
geom_timeline_label
is meant to work in conjunction with ggplot
and
geom_timeline_label
to provide a framework to label important earthquakes.
1 |
An object of class GeomTimelineLabel
(inherits from Geom
, ggproto
) of length 7.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.