Description Usage Format Examples
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.
1 |
An object of class GeomTimeline
(inherits from Geom
, ggproto
) of length 7.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.